Convert SSL certificates between PEM, DER, P7B and PFX formats. Paste your certificate, select the conversion and download the result.
openssl x509 -outform der -in certificate.pem -out certificate.der
openssl x509 -inform der -in certificate.der -out certificate.pem
openssl crl2pkcs7 -nocrl -certfile certificate.pem -out certificate.p7b
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.pem
openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.pem -certfile ca-bundle.pem
openssl pkcs12 -in certificate.pfx -out certificate.pem -nodes
Certificates and keys come in several file formats, and different servers expect different ones. The content is the same; only the encoding and packaging change.
A .cer file can be either PEM or DER. Open it in a text editor: if you see a BEGIN CERTIFICATE line, it is PEM.
Converting to or from PFX involves the private key. For production certificates you can do the same conversion locally, for example openssl pkcs12 -export -out site.pfx -inkey site.key -in site.crt -certfile chain.crt, so the key never leaves your machine. Always protect PFX files with a strong password.