What is the CER file format?
A .cer file stores an X.509 public-key certificate used to authenticate websites, servers, and organizations on the internet. Such certificates assure that a website is genuine and can be trusted. They also enable encrypted connections using HTTPS and TLS/SSL protocols for secure browsing.
The .cer extension is a Windows naming convention. The file may hold the certificate in one of two encodings: binary DER or text-based PEM. To tell them apart, open the file in any text editor - a PEM-encoded .cer begins with the header -----BEGIN CERTIFICATE-----, while a DER-encoded file is binary and not human-readable. The same certificate data may also use the .crt, .pem or .der extension, depending on the system or tool that created it.
The process of obtaining a certificate
In order to apply for a certificate, the user or organization must contact a Certificate Authority (CA) - the entity that issues and signs certificates. The certificate issuing process comprises the following steps:
- Certificate registration - formal certificate request
- Payment - payment for the certificate (typically charged on an annual basis); free certificates are also available from authorities such as Let's Encrypt
- Choosing a domain - the user must choose the domain for which the certificate is to be issued
- Verification - formal verification to confirm the identity of the person or organization requesting a certificate
- Issuing of the certificate - the certificate is generated and delivered to the requester
- Certificate installation
Security & safety
RISK: LOWA .cer normally contains only a PUBLIC certificate - it's safe to view and share, and can't execute. The real caution is about TRUST, not malware: installing a certificate into your trust store tells your system to trust whoever it identifies, so only install a root/CA certificate from a source you trust (an unexpected 'install this certificate' request can be an attempt to intercept your encrypted traffic). Also don't confuse a .cer (public) with a .pfx/.p12 or a .key/.pem private key, which ARE secret and must never be shared or uploaded to online converters. Check a certificate's issuer and expiry before relying on it. Inspect/convert locally with OpenSSL rather than online certificate tools.
Format details
in a nutshell- Lahey Fortran compilation error log (legacy) - An obsolete plain-text compiler-error file from old Lahey Fortran tools - the (incorrect) name in this database; essentially never seen today.
- Internet Security Certificate / OS certificate export - Windows and browsers export trusted certificates as .cer - the same X.509 type this KB describes.
Programs that open CER files
Technical details
deep spec| File encoding | Binary DER (ASN.1) or Base64-encoded PEM; the .cer extension alone does not indicate which encoding is used |
| DER magic bytes | 0x30 0x82 at offset 0 (ASN.1 SEQUENCE tag followed by a 2-byte length field) |
| PEM header | Begins with -----BEGIN CERTIFICATE----- and ends with -----END CERTIFICATE-----; body is Base64 |
| Contents | Public key and certificate metadata only; no private key is stored in a .cer file |
| MIME type | application/x-x509-ca-cert |
| Standard | X.509 v3 (ITU-T X.509 / IETF RFC 5280) |
| Platform convention | Windows-preferred extension for X.509 certificates; .crt is more common on Linux and macOS |
| Certificate types supported | Domain-validated (DV), organization-validated (OV), extended-validation (EV), CA root, and CA intermediate certificates |
| Key certificate fields | Subject DN, Issuer DN, Validity period (Not Before / Not After), Subject Public Key Info, Subject Alternative Names (SAN) |
| Common signature algorithms | RSA-SHA256 (2048 or 4096-bit keys), ECDSA-SHA256 (P-256 / P-384), Ed25519 |
| Inspect with OpenSSL | openssl x509 -in cert.cer -text -noout |
| Convert DER to PEM | openssl x509 -inform DER -in cert.cer -out cert.pem |
| Windows handling | Double-clicking opens the Certificate dialog; certmgr.msc manages the Windows certificate store |
| Related extensions | .crt, .pem, .der and .cert hold the same certificate data; .pfx and .p12 additionally bundle the private key |
| Typical use cases | TLS/HTTPS server authentication, code signing, S/MIME email encryption, client certificate authentication |
| Released | X.509 first published 1988; .cer is a long-standing Windows certificate extension |
| Open standard | Yes · royalty-free |
| Specification | datatracker.ietf.org |
CER conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about CER files.