SSL Certificate Converter
Which format does your server want?
| Format | Extensions | Holds private key? | Typical use |
|---|---|---|---|
| PEM (Base64 text) | .pem .crt .cer .key | Key is a separate file | Nginx, Apache, cPanel, Linux |
| PKCS#12 | .pfx .p12 | Yes, password protected | Windows IIS, Azure, Exchange, Tomcat |
| DER (binary) | .der .cer | No | Java and embedded devices |
| PKCS#7 | .p7b .p7c | No, chain only | Windows 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.pemThe 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
- Read the converted file with the SSL Decoder to confirm subject names and dates.
- Confirm the key matches: compare the public key hash of the certificate and the key.
- 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 sha256The two hashes must be identical.
SSL certificate converter: common errors
| Error | Cause | Fix |
|---|---|---|
| unable to load certificate | Wrong input format flag | Add -inform der for binary files |
| No certificate matches private key | Key and certificate are from different requests | Use the key made with the original CSR |
| IIS shows no private key | PFX built without the key | Re-export with -inkey |
| Chain warnings | Intermediate missing | Add -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.
✅ 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
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.