marcel
marcel copied to clipboard
Add support for pkcs8 (.p8) files
Like pkcs12, add support for pkcs8 (.p8 extension) files. https://www.misterpki.com/pkcs8/
Marcel returns this mime type, but active_storage_validation not pass the validation.
Marcel::MimeType.for Pathname.new("key.p8")
# "application/x-x509-key;format=pem"
validates :my_file, content_type: "application/x-x509-key;format=pem" # not valid
# or
validates :my_file, content_type: "¿?" # ¿:p8, :pkcs8?