Common SSL Formats and How to Convert Them

Converting an SSL certificate means switching between different formats. This is usually needed when a server or service supports only a specific format. Here are the most common SSL formats and how to convert them:

Format Description File Extension
PEM ASCII format, usually used on Apache servers .pem, .crt, .cer, .key
DER Binary format, usually used on Java platforms .der
PFX/P12 Archive containing certificate + private key + CA bundle .pfx, .p12
CRT Certificate file, usually in PEM format .crt
KEY Private key file .key
 
 

🛠️ Conversion Commands with OpenSSL

PEM → DER

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

DER → PEM

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

PEM → PFX

openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.crt -certfile ca_bundle.crt

PFX → PEM

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

💡 Tips

  • If OpenSSL is not installed, you can install it on Linux with sudo apt install openssl, and on Windows with Win32 OpenSSL.

  • You may be asked for a password during conversion; this protects the private key.

  • Some panels (for example Plesk, cPanel) support automatic conversion.

  • 0 Users Found This Useful
  • SSL sertifikası dönüştürme, pem, der, pfx, crt, key, private key
Was this answer helpful?

Related Articles

What is SSL?

🔐 SSL (Secure Sockets Layer) is an encryption protocol that secures data exchange on the...

What is a CSR?

📄 CSR (Certificate Signing Request) is a special file created to obtain an SSL certificate. It is...

Why Is There No Padlock Icon?

🔒 If there is no padlock in the address bar, it usually means the site's SSL (HTTPS) connection...

What is a CAA Record?

📛 CAA (Certification Authority Authorization) record is a DNS-based security mechanism that...

What Are the Benefits of a CAA Record?

A CAA record is a smart measure that improves domain security at the DNS level. It is used...