A certificate problem usually announces itself badly: a browser warning, a failed deployment, a monitoring alert at 3 a.m. saying a certificate expires in nine days. At that point someone asks simple questions. Whose certificate is this? When does it actually expire? Does it even cover the www name? The answers are not locked away in your hosting panel. They are printed inside the certificate itself, in a format anyone can read once it is decoded.
This guide explains what each field of an SSL certificate means and how to read them with the free SSL Certificate Decoder on Ovatly, which decodes the certificate in your browser and uploads nothing.
Contents
- Quick answer
- What a certificate actually is
- The fields, one by one
- How to decode a certificate, step by step
- Worked example: reading a self-signed test certificate
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Copy the certificate in PEM format, the block that starts with -----BEGIN CERTIFICATE----- and ends with -----END CERTIFICATE-----, and paste it into the SSL Certificate Decoder. A bare base64 body without those header lines works too. You get back the subject and issuer, the serial number, the validity dates with a status for today, the subject alternative names, the signature algorithm, the public key type and size, and the SHA-256 fingerprint. That tells you what the certificate says. Whether browsers trust it is a separate question, covered in the limitations below.
What a certificate actually is
An SSL certificate (more precisely, an X.509 certificate) is a small signed document that ties a public key to a set of names and an owner. When your server presents it, a browser reads the document, checks that a certificate authority it trusts signed it, checks the dates, and checks that the name you visited appears in it.
The file you hold, usually ending in .pem or .crt, is that document encoded as base64 text between the BEGIN and END lines. Base64 is an encoding, not encryption. Decoding it is not cracking anything: it is just translating the document back into readable fields, the same fields your browser inspects on every visit.
The fields, one by one
Subject is who the certificate was issued to. For a website certificate the key part is the CN (common name), though modern browsers rely on the SAN list instead.
Issuer is the certificate authority that signed it. When subject and issuer are identical, the certificate signed itself, which is what self-signed means.
Serial number is the issuer's unique identifier for this certificate. It matters when a certificate has to be revoked or matched against a host's records.
Validity dates are the not-before and not-after timestamps. The decoder adds a status for today, so an expired or not-yet-valid certificate is obvious at a glance instead of being a date you have to compare by hand.
Subject alternative names (SANs) are the list of DNS names and IP addresses the certificate covers. This is the field that decides whether the www version of your site, or a second subdomain, is actually protected. A name that is not in the SAN list is not covered, whatever the CN says.
Signature algorithm records how the issuer signed the document, for example sha256WithRSAEncryption. Public key type and size describe the key the certificate carries, such as an RSA key of 2048 bits. Together they are the quick strength check.
SHA-256 fingerprint is a hash of the whole certificate. It changes completely if a single byte changes, which makes it the reliable way to confirm that the certificate you decoded is the same one your host or browser is showing you.
How to decode a certificate, step by step
- Get the certificate text. Your host's panel usually offers it directly, or it sits in the
.pemor.crtfile on your server. Copy the complete block, first line to last. - Open the SSL Certificate Decoder and paste. If your source stripped the header lines, paste the bare base64 body instead.
- Read the details table top to bottom: subject, issuer, dates and status, then the alternative-names list.
- Compare the SHA-256 fingerprint with the one your host or browser shows for the live site. If they differ, you are looking at a different certificate than the one being served, which is itself a useful finding.
Worked example: reading a self-signed test certificate
Decode a self-signed RSA test certificate generated for an internal server and the output reads: subject and issuer both C=US, ST=California, L=San Francisco, O=Example Corp, OU=Web Team, CN=example.com, signature algorithm sha256WithRSAEncryption, an RSA key of 2048 bits, and SANs of DNS example.com, DNS www.example.com and IP 93.184.216.34.
Three conclusions fall straight out of that. Subject equals issuer, so the certificate is self-signed and no browser will trust it for a public site, however tidy the fields look. The SAN list covers both the bare domain and the www name, plus one IP address, so name coverage is complete for its purpose. And the 2048-bit RSA key with a SHA-256 signature matches what the signature algorithm field claims, so the strength fields are consistent.
Limitations and honest tradeoffs
Decoding is display only, and this guide will not pretend otherwise. The decoder does not verify the chain of trust, does not check the signature, and does not consult revocation lists. A certificate that decodes cleanly is not necessarily trusted by browsers: trust also depends on the issuer chain your server sends, and a missing intermediate certificate is a server configuration problem that no amount of staring at the leaf will reveal.
The parser is deliberately minimal. It reads the standard X.509 v1 to v3 fields listed above and the SAN extension. Unusual extensions and multi-byte-tag encodings are not interpreted, and malformed input gets a plain could-not-read message rather than a guess. Only the first certificate in a paste is decoded, so a chain file shows you its leaf and nothing else.
Finally, a warning that is worth repeating: never paste a private key into any decoder. Certificates are public; keys are not. This tool needs only the certificate and will reject or fail to read a key block, but the habit is what protects you everywhere else.
Common mistakes
- Reading the CN and skipping the SANs. Browsers check the SAN list. A certificate whose CN looks right but whose SANs omit your hostname will still produce warnings.
- Assuming decoded means trusted. Decoding proves the document is readable. Trust is the browser's separate verdict on chain, signature, dates and revocation.
- Pasting a chain and reading the wrong certificate. Only the first block is decoded. If you need an intermediate, paste it alone.
- Pasting a private key by accident. If the header says PRIVATE KEY, stop. That text should never leave your server.
- Trusting a copied fragment. A base64 body with characters lost in copying decodes to garbage or fails outright. Copy the complete block.
FAQs
What does decoding a certificate actually show? It shows the contents of the certificate itself: subject and issuer, serial number, validity dates with a status for today, subject alternative names, signature algorithm, public key type and size, and the SHA-256 fingerprint.
If a certificate decodes cleanly, does that mean browsers trust it? No. Decoding is display only. The chain of trust is not verified, the signature is not checked and revocation is not consulted, so a certificate can decode perfectly and still be untrusted, expired or issued for the wrong name.
I pasted a file with several certificates. Which one was decoded? The first one. In a chain file, the first certificate is the leaf, the one your server presents for your site, which is usually the one you want to inspect. Paste a different block on its own if you need to read an intermediate.
Is it safe to paste my certificate into a decoder? Certificates are public documents: your server hands yours to every visitor. The Ovatly decoder also runs fully locally in your browser, so the pasted text never leaves your device. Never paste a private key, though. The tool needs only the certificate and will reject or fail to read a key block.
Why did my paste fail to decode? The usual causes are pasting the wrong block (a private key or a certificate signing request instead of a certificate), losing characters from the base64 body while copying, or a certificate with unusual extensions the deliberately minimal parser does not interpret. Check that you have the full block from BEGIN CERTIFICATE to END CERTIFICATE, or the bare base64 body on its own.
Conclusion
Most certificate questions are reading questions, and the document itself answers them: the names in the SAN list, the dates beside today's status, the issuer, the key, the fingerprint. Decode first and you replace guessing with evidence. When the job is building the visual side of a page rather than inspecting its security, our companion guide on creating a CSS gradient for a website background covers that workflow. For more guides in this series, see our Website and Webmaster Tools guides.
References
- RFC 5280, the X.509 certificate and CRL profile the fields in this guide come from: https://www.rfc-editor.org/rfc/rfc5280
- MDN Web Docs, on how TLS certificates are presented and checked by browsers: https://developer.mozilla.org/en-US/docs/Web/Security/Transport_Layer_Security