Certificate Errors in the Browser: What They Mean
Decode common browser certificate warnings, decide when it is unsafe to continue, and follow fixes for visitors and for site owners.
Key takeaways
- A certificate warning means identity could not be verified, so treat the connection as untrusted until you know why.
- Check your device's date and time first, because a wrong clock breaks valid certificates.
- If every secure site fails, suspect your device, security software or network rather than the sites.
- Clicking through a warning on a site that handles accounts or money is never a good idea.
- Site owners should check names, dates and the intermediate chain, which cause most errors.
A certificate error means your browser couldn't confirm that it is talking securely to the site you asked for. The cause is often mundane, like an expired certificate or a wrong clock, but the same warning is exactly what you would see if someone were intercepting your connection.
The safe default is to stop. Don't enter passwords or payment details past a certificate warning. Then use the error code to work out whether the problem is your device, your network or the site.
What the browser checks
During the TLS handshake, the server presents a certificate. The browser asks: is it signed by a chain leading to a trusted root, is today inside its validity dates, does it list the hostname I requested, and is it free of known revocation or policy problems? A "no" to any of these produces a warning page. See how certificates work for the background.
The common errors, decoded
Chromium-based browsers show codes starting with NET::ERR_CERT_. Firefox uses its own names. Wording and codes can change between versions.
NET::ERR_CERT_DATE_INVALID
The certificate is outside its validity window. Either the site let it expire or your device's clock is off. Firefox may report SEC_ERROR_EXPIRED_CERTIFICATE.
NET::ERR_CERT_COMMON_NAME_INVALID
The hostname isn't among the certificate's Subject Alternative Names. A typical case is a certificate for www.example.com served on example.com, or a server returning its default certificate for a site it hasn't configured. Firefox may show SSL_ERROR_BAD_CERT_DOMAIN.
NET::ERR_CERT_AUTHORITY_INVALID
The browser can't build a trusted chain. Reasons include a self-signed certificate, a missing intermediate, a private corporate CA your device doesn't have, or an interceptor presenting its own certificate. Firefox often says SEC_ERROR_UNKNOWN_ISSUER.
NET::ERR_CERT_REVOKED
The issuer has withdrawn the certificate, perhaps because the private key was exposed. Don't continue. Only the site owner can fix it.
ERR_SSL_PROTOCOL_ERROR and ERR_SSL_VERSION_OR_CIPHER_MISMATCH
These aren't strictly certificate verdicts. The handshake itself failed, because of server misconfiguration, very old protocol versions, no shared cipher, or interference on the path.
If you're a visitor
Work through these checks in order.
Clocks. A flat backup battery, a dual-boot setup or a manual change can leave a computer years off. Fix the time and the errors vanish.
Captive portals. Hotel and airport networks that redirect you to a sign-in page can't impersonate secure sites cleanly, so you get a warning. Visit the network's sign-in page, which many devices open automatically.
Security software. Some antivirus products inspect encrypted traffic by installing their own root certificate. If that setup breaks, every site may fail. Update or repair the product.
Work and school networks. Managed devices may trust an organization's inspection certificate. A personal device on the same network won't, and will warn. Ask the IT team; don't install a root certificate just to silence the message unless you understand who controls it.
Old devices. A system that no longer receives updates may lack newer root certificates. Updating, where possible, is the fix.
Unexpected interception. If a warning appears only on one network, especially on important sites, disconnect and use mobile data. Public Wi-Fi risks explains why.
Should you ever click through?
Browsers often hide a "proceed anyway" option under an advanced link. Using it means the connection may be encrypted to someone unknown.
It can be reasonable for equipment you own and understand, such as a router or lab server with a self-signed certificate on your local network, ideally after comparing the certificate fingerprint with the one on the device. It is not reasonable for banking, email, shopping or any site where you sign in. Sites using HSTS remove the option altogether.
Be suspicious of any message, caller or pop-up that tells you to ignore a security warning or install a certificate. That is a hallmark of support scams.
If you run the site
Reproduce the error from outside your network and inspect what the server really sends:
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null \
| openssl x509 -noout -subject -issuer -dates -ext subjectAltName To see the chain and the verification result:
openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null Look for these causes:
- Expired certificate. Renew, install and reload the server. Then fix the automation that failed.
- Renewed but not loaded. The new file is on disk while the running process still holds the old one.
- Missing names. Reissue with every hostname, including
wwwand the bare domain. - Missing intermediate. Configure the full chain file, not the leaf alone.
- Wrong virtual host. A name without its own TLS configuration gets the default certificate.
- One server out of step. Behind a load balancer or with several addresses, including IPv6, one node may be stale. Test each.
- Proxy or CDN settings. The edge certificate and the origin certificate are managed separately.
Automated issuance prevents most of this; see ACME automation.
Phones, tablets and smart devices
On phones, start in the same place: set date and time to automatic, then check whether a VPN, filtering app or "security" profile is installed. Any of these can sit in the middle of your connections. Remove profiles or certificates you don't recognize, and on a work-managed phone, ask your administrator first.
Apps are less informative than browsers. They may simply say they can't connect or that a secure connection failed. Opening the same service's website in the phone's browser often reveals the underlying certificate message.
Smart TVs, older consoles and embedded gadgets can hit these errors when their trusted root list ages. A firmware update is the usual remedy. If the maker no longer provides updates, there may be no safe fix, and turning off verification is rarely offered or wise.
Warnings on your own router or storage box
Home network equipment often serves its settings page over HTTPS with a self-signed certificate, because a device with a private address can't easily get a publicly trusted one. The warning is accurate: your browser has no way to verify the device.
On your own wired or well-secured home network, you can accept that specific certificate after confirming you typed the right local address. If the device displays its certificate fingerprint on a label or console, compare it. A sudden new warning for a device you've used for months deserves a second look; a factory reset or firmware update can regenerate the certificate, but so can a different device answering at that address.
Intermittent warnings
Errors that come and go usually mean different paths lead to different certificates. One server behind a name may be outdated, IPv4 and IPv6 may point at different machines, or a network may redirect you only some of the time. Note the issuer and end date shown in the certificate viewer on a good attempt and a bad one. The difference between the two usually identifies the culprit within a minute.
Errors in apps and scripts
Programs reject bad certificates too, with messages such as "unable to get local issuer certificate." Don't solve it by switching verification off, for instance with curl -k left in a script. That removes the protection that makes TLS meaningful. Fix the chain on the server, or give the client the correct CA bundle.
Reporting the problem usefully
If you contact a site owner or IT team, include the exact error code, the full address, the time, your browser and operating system, and whether another network behaves differently. The certificate viewer shows the issuer's name; an unexpected issuer, such as an unfamiliar company or product, is especially worth passing on.
Common questions
Does a warning mean the site has been hacked?
Not usually. Expiry and configuration mistakes are everyday causes. But you can't tell from the warning page alone, which is why caution is right.
Why does the site work in one browser and fail in another?
Browsers can use different root stores, cache intermediates differently and update on different schedules. A difference often points to an incomplete chain or an outdated trust list.
Will clearing the cache help?
Occasionally, if stale connection state or cached data is involved, but it won't repair a bad certificate. Check the clock, network and certificate details first.