SSL2BUY Wiki
News, Information and Resources about SSL Certificates
Comodo
Sectigo
AlphaSSL
RapidSSL
GeoTrust
Thawte
GlobalSign
DigiCert
Symantec
Authorized Reseller

SSL Converter

SSL converter – Use OpenSSL commands to convert your certificates to key, cer, pem, crt, pfx, der, p7b, p12, p7c, PKCS#12 and PKCS#7 format.

SSL converter helps you in solving the most common issues of certificate file-type during SSL/TLS certificate installation process. Sometimes trusted CA’s issues defined certificate which would not be compatible with your server as different servers require different types of file formats.

There are different file formats PEM, PFX, DER, P7B, PKCS#12, and PKCS#7 that can be measured by file extensions.

File Types Extensions
PEM .key, .cer, .pem or .crt
PFX .pfx
DER .der or a .cer
P7B .p7b
PKCS#12 .p12
PKCS#7 .p7c

OpenSSL Commands to Convert your SSL/TLS certificate

If your server doesn’t support Base64 encoded X.509 then you should convert your files as per your desired server using OpenSSL commands. You can easily convert your certificates into the right format by using following commands.

cheapest ssl certificate

Convert PEM File

Convert PEM to DER

openssl x509 -outform der -in certificate.pem -out certificate.der

Convert PEM to P7B

openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer

Convert PEM to PFX

openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt

Convert DER File

Convert DER to PEM

openssl x509 -inform der -in certificate.cer -out certificate.pem

Convert P7B File

Convert P7B to PEM

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer

Convert P7B to PFX

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer

Convert PFX File

Convert PFX to PEM

openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes