Why convert PEM to CRT?
Some software, installers, and server control panels (cPanel, Plesk, older IIS wizards) ask for a .crt file. In most cases this is a naming convention - they want a file containing only the end-entity certificate. Occasionally the target requires binary DER rather than Base64 text, and then a real encoding conversion is needed.
How to convert PEM to CRT
OpenSSL FREE
Run openssl x509 -in cert.pem -outform der -out cert.crt to produce a binary DER .crt; verify with openssl x509 -in cert.crt -inform der -text -noout. OpenSSL is FREE and runs on Windows, macOS, and Linux.
About these formats
A PEM file is a text container for cryptographic data - most often an SSL/TLS certificate, a private key, or both. Open it in any text editor to see what the BEGIN line says, then use…
Open .PEM details →A CRT file is an X.509 digital certificate that ties an identity (a website, server, or publisher) to a public key, signed by a Certificate Authority. On Windows, double-click it to view…
Open .CRT details →Quality & what to watch
- If the
.pemalready holds a Base64 certificate (-----BEGIN CERTIFICATE-----), renaming it to.crtoften works without any conversion - many tools treat the two extensions as interchangeable. - Before renaming, confirm the
.pemcontains only the end-entity certificate block; extract just the certificate if it also includes a private key or chain. - A
.crtfile is also commonly saved as.cer- the content is identical; only the extension differs.
Frequently asked questions
Is it safe to rename a `.pem` file to `.crt`?
-----BEGIN CERTIFICATE----- - many tools treat the two extensions as equivalent.When do I actually need OpenSSL instead of just renaming?
What if my `.pem` contains a private key too?
-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- block into a new file before renaming - never distribute a file containing your private key.How do I verify the converted `.crt` is valid?
openssl x509 -in cert.crt -inform der -text -noout; if it prints certificate details, the conversion worked.