How to Read an SSL/TLS Certificate and Fix Common Certificate Errors
A certificate warning stops visitors cold, and the browser's message rarely says what is actually wrong. Nearly every warning comes down to one of four causes. Once you can read a certificate's fields, you can tell which one you are looking at in a minute or two.
What a certificate proves
When a browser connects to a site over HTTPS, the server presents a certificate: a signed statement from a certificate authority (CA) that a particular public key belongs to particular domain names. The browser checks three things: that the certificate covers the name in the address bar, that it is within its validity dates, and that it chains back to a root authority the browser or operating system trusts. If all three hold, the connection is encrypted to the right server. If any fails, you get a warning.
"SSL certificate" is the common name, but SSL itself was retired years ago. Current connections use TLS, and the certificates are the same either way.
The fields that matter
| Field | What it holds | What to check |
|---|---|---|
| Subject Alternative Name (SAN) | Every DNS name the certificate covers, such as example.com and www.example.com | The exact name visitors use must be listed. Browsers rely on this field, not the older Common Name. |
| Subject / Common Name | Historically the main name; now mostly informational | Do not rely on it when diagnosing a mismatch. |
| Issuer | The CA (usually an intermediate) that signed it | Is it an authority you expect? Unexpected issuers can signal misconfiguration. |
| Validity (Not Before / Not After) | The start and end of the certificate's life | Expired, or not yet valid because a device's clock is wrong. |
| Public key and signature algorithm | Usually RSA or ECDSA keys with SHA-256 signatures | Very old algorithms such as SHA-1 are rejected by modern browsers. |
| Serial number | Unique per CA | Useful when searching logs or revoking. |
In most browsers you can view these by clicking the icon to the left of the address and opening the certificate details.
Wildcards and names
A wildcard certificate for *.example.com covers www.example.com and shop.example.com, but not the bare example.com, and not a.b.example.com, because a wildcard matches exactly one label. Many certificates list both example.com and *.example.com in the SAN field for this reason. Wildcards are convenient, but the same private key then protects every subdomain, so a compromise on one server affects them all.
The chain of trust
Root CA keys are kept offline. Day-to-day certificates are signed by intermediate certificates, which are in turn signed by a root. Browsers ship with the roots; the server is expected to send its own certificate plus the intermediates. If the server sends only its own certificate, some clients can fill the gap from cache or by downloading the intermediate, and others cannot. That is why an incomplete chain often produces the confusing report "it works on my laptop but not on some phones, or from a script".
Diagnosing the four common errors
1. Expired certificate
Chrome shows NET::ERR_CERT_DATE_INVALID. Check the Not After date. On a server, the usual cause is automated renewal that silently stopped: a changed DNS setup that breaks validation, a firewall blocking the CA's validation requests, or a renewal job that renews the file but never reloads the web server. If only one visitor sees this error, check their device's clock: a date far in the past or future makes valid certificates look expired.
2. Name mismatch
Chrome shows NET::ERR_CERT_COMMON_NAME_INVALID. The certificate is valid but does not list the name being visited. Common causes are a missing www or bare-domain entry, a new subdomain added without reissuing the certificate, or a DNS record pointing to a shared server that presents some other customer's default certificate.
3. Untrusted issuer
Chrome shows NET::ERR_CERT_AUTHORITY_INVALID. Either the certificate is self-signed, the chain is incomplete, or something between the visitor and the site is intercepting TLS. Corporate security proxies and some antivirus products do this deliberately and install their own root on managed devices. On a network you do not control, such as public Wi-Fi, treat an unexpected issuer as a reason to stop.
4. Incomplete chain
This may show as an authority error on some clients only. Configure the server with the "full chain" file your CA or ACME client provides rather than the single certificate.
Checking from the command line
openssl s_client -connect example.com:443 -servername example.com -showcertsshows every certificate the server sends, in order. The-servernameoption matters, because servers hosting many sites choose a certificate based on it.- Pipe the result into
openssl x509 -noout -subject -issuer -dates -ext subjectAltNameto print the names and dates of the first certificate. curl -vI https://example.comshows the handshake and fails with a specific message if verification fails.
Certificate lifetimes are getting shorter
Browsers and CAs set the rules for publicly trusted certificates through the CA/Browser Forum. Maximum lifetimes have shrunk over the years, and the Forum has adopted a schedule that keeps shortening them in stages, down to 47 days by 2029. Let's Encrypt certificates have long been valid for 90 days. The practical message is that manual renewal is on its way out. Use an ACME client or your host's automatic certificates, and monitor expiry dates rather than relying on calendar reminders.
Using Certificate Transparency
Every publicly trusted certificate must be recorded in public Certificate Transparency (CT) logs, and browsers check for proof of logging. That gives you a complete issuance history for any domain. The GotInfo certificate search queries those logs, and it is useful for:
- Checking renewals. A regular rhythm of issuance that suddenly stops means renewal broke, often weeks before the expiry date.
- Spotting unexpected issuers. If a CA you do not use issued a certificate for your domain, find out why. A CAA record limits which authorities may issue in future.
- Finding forgotten hosts. Old staging and test names show up in issuance history, which makes CT logs a quick inventory of a domain's subdomains.
The flip side is that every name in a public certificate is public. Do not put internal host names you want to keep private into publicly trusted certificates; a wildcard or a private CA is better for those.
See every certificate logged for a domain: open the GotInfo certificate transparency search.