Your site loads fine one week and shows a full-page warning the next: "Your connection is not private", with a code like NET::ERR_CERT_DATE_INVALID underneath. Visitors turn back at the padlock that was supposed to build trust. The warning names a category, not a cause: an expired certificate, a name mismatch and an untrusted issuer can all produce a very similar screen.

To find the cause you have to read the certificate itself: its dates, its names, its issuer. This guide walks through the causes and shows which field exposes each one, using the free SSL Certificate Decoder on Ovatly, which decodes a certificate you paste, in your browser.

Contents

  • Quick answer
  • What the browser checks before it complains
  • Cause 1: the certificate is expired, or not valid yet
  • Cause 2: the site name is not in the SAN list
  • Cause 3: the issuer is self-signed or untrusted
  • Cause 4: the wrong certificate is installed
  • 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

A browser accepts a certificate only when four things hold: it is inside its validity dates, the site name appears in its subject alternative names (SANs), the issuer chains up to a trusted authority, and the certificate has not been revoked. When one fails, you get the warning. Paste the certificate in PEM format into the SSL Certificate Decoder and read three fields first: the validity dates with their status for today, the SAN list, and the issuer. Those three expose most errors. The decoder shows what the certificate says; it cannot verify the trust chain or revocation, so a certificate can decode cleanly and still fail, as the limitations section covers.

What the browser checks before it complains

A certificate is a signed statement: this public key belongs to this name, issued by this authority, valid between these dates. Before showing your page over HTTPS, the browser tests that statement. Are today's dates inside the validity window? Does the name in the address bar appear in the SAN list? Can the issuer be chained to a trusted root authority? Has the certificate been revoked?

Each failed test maps to a field you can read, so instead of guessing from the warning text, decode the certificate and check the fields one by one.

Cause 1: the certificate is expired, or not valid yet

Certificates have start and end dates, and outside that window the browser refuses them. The decoder displays both dates with a status for today, so expiry is the fastest diagnosis there is: if the status says the certificate is out of date, renewal is the fix. The mirror-image problem also exists: a certificate installed before its start date, or a server clock set wrong, can make a valid certificate look premature. Either way, the dates field settles it in seconds.

Cause 2: the site name is not in the SAN list

Modern browsers match the hostname against the subject alternative names, the list of DNS names, IP addresses, emails or URIs the certificate covers. They ignore the old CN field entirely. So a certificate issued for example.com does not cover shop.example.com unless that name is also in the SAN list, and a certificate with no SANs at all fails no matter what its CN says. When a site works at one address and errors at another, compare the failing address against the SAN list in the decoded output. A missing name means the certificate needs reissuing with the right names on it.

Cause 3: the issuer is self-signed or untrusted

The issuer field names who signed the certificate. If the issuer is a public certificate authority, the browser can usually build a chain to a trusted root. If the issuer is the same as the subject, the certificate is self-signed: it vouches for itself, and browsers do not trust it on public websites. Self-signed certificates are normal on internal test servers and a classic cause of warnings when one reaches a public site by mistake. An unrecognised issuer, or a server that fails to send its intermediate certificates, produces the same family of error.

Cause 4: the wrong certificate is installed

Servers hosting several sites sometimes present the wrong certificate: a staging certificate on the live domain, or another site's certificate entirely. The decoded subject and SAN list will show a name that is not yours. To confirm you are looking at the same certificate your visitors see, compare the SHA-256 fingerprint in the decoded output with the one your host's panel or browser's certificate viewer shows for the site. If they differ, you decoded a different file than the one being served.

How to decode a certificate, step by step

  1. Get the certificate in PEM format, the block from BEGIN CERTIFICATE to END CERTIFICATE, from your host's panel or the .pem or .crt file. A bare base64 body also works. Never use a private key file.
  2. Open the SSL Certificate Decoder and paste the text. Everything is processed locally; the certificate is never uploaded.
  3. Read the validity dates and the status for today first. This rules expiry in or out immediately.
  4. Read the SAN list and check your exact hostname is there, then compare the issuer with the subject.
  5. If anything looks off, compare the SHA-256 fingerprint against the certificate your site actually serves.

Worked example: reading a self-signed test certificate

Take a self-signed test certificate generated for an internal server. Decoded, it shows subject and issuer both as 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.

Read it the way a browser would. The SAN list covers both names and the IP, so a name error is unlikely, and the key size and signature algorithm are ordinary. But subject and issuer are identical, which means the certificate signed itself. Put it on a public site and every browser warns: no field is malformed, but no trusted authority stands behind it. The fields told you the cause before you touched the server.

Limitations and honest tradeoffs

Decoding is display only. The decoder does not verify the chain of trust, check the signature or consult revocation lists, so it can never tell you a certificate is trustworthy, only what it contains. It also decodes only the first certificate in pasted text, and its parser is deliberately minimal: standard fields and the SAN extension are read, unusual extensions are not interpreted. Use the decoded fields to find which condition is failing, then fix that condition at the issuer or the server.

Common mistakes

  • Pasting a private key. The decoder needs the certificate only, and a private key should never be pasted into any web page.
  • Checking the CN and ignoring the SANs. Browsers have ignored the CN for name matching for years. If the hostname is not in the SAN list, the certificate fails, whatever the CN says.
  • Assuming a chain file was fully decoded. Only the first certificate is read. Decode the others separately if you need them.
  • Stopping at the dates. A certificate inside its validity window can still be self-signed, revoked or issued for the wrong names. Read all the fields.

FAQs

The decoder shows my certificate cleanly, so why does the browser still show an error? Decoding is display only. The decoder does not verify the chain of trust, check the signature or consult revocation lists. A certificate can contain perfectly readable fields and still fail because its issuer is untrusted or it has been revoked.

Can I paste my private key to check what is wrong? No. Never paste a private key anywhere. The decoder needs only the certificate, a public document your server sends to every visitor, and it will reject or fail to read a key block.

What does it mean when the subject and issuer are identical? The certificate is self-signed: it vouches for itself instead of being issued by a certificate authority. Browsers do not trust self-signed certificates on public websites, which is a common cause of the warning.

Why does my site fail even though the certificate has not expired? Expiry is only one condition. The usual other cause is a name mismatch: modern browsers check the site name against the subject alternative names (SANs) and ignore the old CN field, so if your exact hostname is missing from the SAN list, the browser shows an error.

I pasted a chain file. Which certificate did the decoder read? Only the first one. In a chain file that is the leaf certificate, the one your server presents for your site. The intermediate and root certificates are not decoded.

Conclusion

A certificate error stops being mysterious once you read the certificate instead of the warning. Dates, SAN list, issuer and fingerprint expose nearly every common cause, and the SSL Certificate Decoder puts all four in front of you from a single paste. For a different kind of checking, our guide to finding keywords in a page of text covers what your pages actually say. For more in this series, see our Website and Webmaster Tools guides.

References