openssl pkcs12 -export -out certificate.p12 -inkey *** -in *** -inform der -certfile *** to convert, but this command needs files that I could not get. In short I have a file that contains all necessary information to convert to pkcs12. It works its import in access to OSX keys and export to pkcs12, however I wish to perform command line (openssl).
Common DER Conversions View contents of DER-encoded certificate file: ... Convert DER-encoded certificate to PEM: ... I have tried to read this file as a CSR and also as a pkcs7 cert and a pkcs8 key and it is not one of those. Looks like the file is either corrupted or not what you think it is.
235 .pem, .cer and .der are all file extensions for files that may contain a X.509 v3 certificate. The .der extension DER is the method of encoding the data that makes up the certificate. DER itself could represent any kind of data, but usually it describes an encoded certificate or a CMS container.
Update I have based my solution on this and this answers. Background I am trying to read a DER formatted certificate file and attempt to verify it. My cert is in DER format. I have confirmed t...
2 After several attempts to convert the DER into PEM the OP provided the DER file in question. Base64 encoded it looks like this: BEGINPUBLICKEYMIIB...AwENDPUBLICKEY The BEGINPUBLICKEY at the beginning and ENDPUBLICKEY look very fishy.
ssl - How to convert a DER file to a PEM file? - Stack Overflow