marcel icon indicating copy to clipboard operation
marcel copied to clipboard

Add support for pkcs8 (.p8) files

Open ocarreterom opened this issue 2 years ago • 0 comments

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?

ocarreterom avatar Feb 27 '23 16:02 ocarreterom