ssl-guides 2026-12-02 ⏱ 2 min read

SSL Certificate Converter

SSL Certificate Converter
Quick Answer: Use the SSL Converter or OpenSSL to switch formats: PEM for Nginx and Apache, PFX for Windows IIS and Azure, DER for Java and devices. Keep the private key private while you convert.

Which format does your server want?

FormatExtensionsHolds private key?Typical use
PEM (Base64 text).pem .crt .cer .keyKey is a separate fileNginx, Apache, cPanel, Linux
PKCS#12.pfx .p12Yes, password protectedWindows IIS, Azure, Exchange, Tomcat
DER (binary).der .cerNoJava and embedded devices
PKCS#7.p7b .p7cNo, chain onlyWindows import, Tomcat

If a file starts with -----BEGIN CERTIFICATE-----, it is PEM.

SSL certificate converter: OpenSSL commands

# PEM certificate to DER
openssl x509 -in certificate.crt -outform der -out certificate.der

# DER to PEM
openssl x509 -inform der -in certificate.der -out certificate.pem

# PEM + key + chain to PFX
openssl pkcs12 -export -out certificate.pfx \
  -inkey private.key -in certificate.crt -certfile ca_bundle.crt

# PFX back to PEM (certificate and key)
openssl pkcs12 -in certificate.pfx -nodes -out all.pem

# P7B to PEM
openssl pkcs7 -print_certs -in certificate.p7b -out certs.pem

The PFX export asks for a password. Choose a strong one and store it in a password manager. The -nodes option writes the key unencrypted, so delete that file once you are done.

Use the browser converter safely

The SSL Converter handles the same conversions without a terminal. A private key gives full control of your certificate, so only paste it into a tool you trust, and prefer local OpenSSL for production keys. Public certificates and chains carry no secret and are safe to inspect.

Check the result

  1. Read the converted file with the SSL Decoder to confirm subject names and dates.
  2. Confirm the key matches: compare the public key hash of the certificate and the key.
  3. Install, then test with the Live SSL Checker for chain and expiry.
openssl x509 -in certificate.crt -noout -pubkey | openssl sha256
openssl pkey -in private.key -pubout | openssl sha256

The two hashes must be identical.

SSL certificate converter: common errors

ErrorCauseFix
unable to load certificateWrong input format flagAdd -inform der for binary files
No certificate matches private keyKey and certificate are from different requestsUse the key made with the original CSR
IIS shows no private keyPFX built without the keyRe-export with -inkey
Chain warningsIntermediate missingAdd -certfile ca_bundle.crt

Related reading: converting PFX to PEM, converting CRT to PEM and converting PEM to a Java keystore.

Frequently Asked Questions

Can I convert a PFX to PEM without the password?

No. The password is needed to unlock the contents.

Does converting change the certificate?

No. The content and validity stay the same. Only the container changes.

What is the difference between CRT and CER?

Both are only file extensions. Check whether the content is PEM or DER.

Is it safe to upload a certificate?

A public certificate is not secret. Never upload a private key to a service you do not trust.

🔄 Convert PEM Certificate to Windows .PFX Online
Convert PEM → PFX →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant