(1 votes, average: 5.00 out of 5)
This article provides a way to convert an SSL certificate to PEM format. Before Conversion please confirm your current certificate formate.
Verifying the Format of the Existing Certificate
The SSL Certificate Converter tool will help to convert SSL certificates between several formats, including pem, der, p7b, and pfx. SSL certificates must be transformed into multiple formats for various platforms and devices.
An Apache server utilizes individual PEM (.crt,.cer) files, whereas a Windows server exports and imports— .pfx files. Choose your certificate file and its present type, choose the format you’d like it to be converted to, and click Convert Certificate to begin using it. (To quickly convert your SSL certificate to other formats, find Certera’s Free SSL Certificate Converter Tool!
You can convert the certificates into the proper format using third-party software like OpenSSL if your server or device needs a certificate format different from Base64 encoded X.509.
A few typical conversion commands are listed below:
Note: For certificates, the PEM format is the most widely used. Cer, Crt, and Pem are the extensions used for PEM certificates. ASCII files that have been Base64 encoded. The binary version of the certificate is stored in the DER format. Statements beginning with “BEGIN CERTIFICATE/END CERTIFICATE” are absent from certificates in DER format. The most common extension for DER encoded certificates is ‘.der.’
Enter the code below into the OpenSSL client:
openssl x509 -in cert.crt -out cert.pem
openssl x509 -in cert.cer -out cert.pem
openssl x509 -in cert.der -out cert.pem
Converting PEM files to these formats is likewise possible using comparable instructions. The simple, bare OpenSSL commands above are only a sample of the other arguments you can include in your command, including -inform and -outform.