Why Your Browser Says a Website Is Not Secure: SSL and TLS Errors Explained
Learn what causes browser SSL/TLS warnings—including expired certificates, hostname mismatches, missing intermediate chains, and wrong system clocks—and how to inspect them safely.
- What HTTPS and TLS certificates actually verify before your browser loads a page.
- The most common causes of browser certificate warnings: expiry, hostname mismatch, missing intermediates, and device clock skew.
- Why you should avoid bypassing certificate warnings on login, banking, or sensitive sites.
- How to inspect certificate details safely in a browser or with curl and OpenSSL.
Introduction
Seeing a full-screen "Your connection is not private" or "Warning: Potential Security Risk Ahead" notice is jarring, especially on a website you visit every day. Unlike an HTTP 500 error, a TLS certificate warning stops the connection before the page content is trusted.
Some certificate warnings come from a misconfiguration on the website’s server, while others originate on your own device or local network. Knowing how to read the specific error code tells you which side is at fault.
1. What HTTPS and TLS Certificates Do
HTTPS wraps web traffic inside Transport Layer Security (TLS). TLS provides two essential protections: encryption (preventing observers on the network from reading or altering data in transit) and authentication (proving the server really controls the domain name shown in your address bar).
A digital certificate issued by a trusted Certificate Authority (CA) links the website’s public key to its domain name. Before sending cookies, passwords, or page requests, your browser verifies that signature chain, checks the certificate’s validity dates, and confirms the hostname matches.
2. Why Browsers Warn About Certificate Problems
Whenever any verification step fails, modern browsers block access by default because they cannot distinguish an accidental server mistake from an active interception attack (man-in-the-middle).
On sensitive websites—such as banking portals, email, account logins, or anything handling personal information—you should never click past a certificate warning.
3. Common Causes of SSL and TLS Certificate Errors
Most certificate errors fall into one of six categories:
- Expired certificates (ERR_CERT_DATE_INVALID): Automated renewal (such as ACME/Let’s Encrypt) failed, or a manual renewal was missed, leaving the certificate past its Not After date.
- Hostname mismatches (ERR_CERT_COMMON_NAME_INVALID / SSL_ERROR_BAD_CERT_DOMAIN): The certificate was issued for www.example.com but not example.com, or a CDN/hosting server served the default certificate for another domain.
- Missing intermediate certificates: The server sent its leaf certificate without the intermediate CA certificate required to chain back to a browser’s trusted root store. Some browsers fetch missing intermediates automatically, while strict clients and API probes fail.
- Untrusted certificate authorities (ERR_CERT_AUTHORITY_INVALID): The server is presenting a self-signed certificate, a staging certificate, or a certificate dynamically generated by corporate network inspection or antivirus HTTPS scanning.
- Incorrect device clock: If your computer or phone clock is set weeks or years in the past or future, a completely valid certificate appears expired or not yet valid.
- TLS protocol or cipher configuration problems: Very old browsers or misconfigured servers may fail to agree on a supported TLS version or cipher suite during the handshake.
| Browser / Client Error | Likely Issue | First Diagnostic Check |
|---|---|---|
| NET::ERR_CERT_DATE_INVALID | Expired certificate or wrong local device clock | Check device date/time first, then inspect certificate Not After date |
| NET::ERR_CERT_COMMON_NAME_INVALID / SSL_ERROR_BAD_CERT_DOMAIN | Domain name missing from certificate SAN list | Verify whether certificate covers both apex and www hostnames |
| NET::ERR_CERT_AUTHORITY_INVALID | Self-signed cert, missing intermediate, or proxy interception | Inspect Issued By field to distinguish site CA vs. local network/antivirus proxy |
| UNABLE_TO_VERIFY_LEAF_SIGNATURE (CLI/Probes) | Incomplete intermediate certificate chain on server | Test with openssl s_client -showcerts and deploy fullchain bundle |
4. Safe Ways to Inspect a Certificate in a Browser
You can inspect a certificate without bypassing security warnings or submitting sensitive data:
- On the browser warning page, click "Advanced" only to view the error code (such as NET::ERR_CERT_DATE_INVALID or SEC_ERROR_EXPIRED_CERTIFICATE)—do not proceed through the bypass link on sensitive sites.
- In Chrome, Edge, or Firefox, you can also click the site-information icon in the address bar (or the "Not secure" indicator) and open "Certificate is not valid" / "View certificate".
- Check three fields: Issued To / Subject Alternative Names (does it include the exact domain you visited?), Valid From / Valid To dates, and Issued By (is it a public CA like Let’s Encrypt, DigiCert, or Google Trust Services, or an unfamiliar local proxy?).
5. Command-Line TLS Diagnostics
For engineers and technically inclined users, curl and OpenSSL show the exact handshake and certificate chain returned by a server. The commands below use example.com as an illustrative target:
- curl -Iv attempts a verbose HTTPS HEAD request and prints the negotiated TLS version, certificate subject, dates, issuer, and whether verification succeeded or failed.
- openssl s_client -connect example.com:443 -servername example.com opens a raw TLS connection with Server Name Indication (SNI). Always include -servername when testing virtual-hosted domains so the server knows which domain’s certificate to send.
- OpenSSL output requires careful interpretation: it may print Verify return code: 0 (ok) even when a hostname does not match unless you also pass -verify_hostname example.com, and its local CA bundle may differ from a browser’s root store.
curl -Iv https://example.com openssl s_client -connect example.com:443 -servername example.com
6. Troubleshooting for Visitors vs. Website Owners
The right fix depends on whether you are trying to visit a site or you operate it:
What Visitors Should Check
Start by verifying your device’s date, time, and timezone—automatic network time fixes clock-skew errors immediately. If you are on hotel, airport, or coffee-shop Wi-Fi, an unauthenticated captive portal login page often intercepts HTTPS traffic and triggers a certificate mismatch; opening a plain http:// page or reconnecting Wi-Fi lets the login portal appear.
Also check whether ItsUporDown can reach the HTTPS URL cleanly: if our probe reports a valid HTTPS response while your browser warns about an unfamiliar issuer, check antivirus HTTPS scanning or a local proxy on your device.
What Website Owners Should Fix
Verify that the certificate’s Subject Alternative Name (SAN) list covers both the apex domain and the www subdomain if both are served over HTTPS. Ensure your web server or load balancer serves the full certificate chain (leaf plus intermediate certificates), and check that automated renewal jobs reload the web server or CDN edge cleanly after renewing.
If you use a CDN in front of your origin server, confirm the SSL mode matches your origin setup and that both edge certificates and origin certificates remain valid.
Frequently Asked Questions
Is it safe to click "Proceed anyway" on a browser certificate warning?
Avoid bypassing certificate warnings on any website where you log in, enter personal information, or make payments. A warning can mean a misconfigured site, or it can mean an untrusted party on your network is intercepting your connection.
Can a website be "up" over HTTP while broken over HTTPS?
Yes. A server can have a valid web process running on port 80 while its port 443 TLS listener is misconfigured or serving an expired certificate.
Does ItsUporDown display a certificate’s exact expiration date?
No. ItsUporDown’s HTTPS client validates the TLS certificate during the request and flags certificate failures as unreachable/SSL errors, but it does not parse or display individual certificate expiry dates.
Why did a certificate error happen only on public Wi-Fi?
Public Wi-Fi captive portals or strict network proxies sometimes intercept HTTPS requests before you sign in to the network, causing a hostname or authority mismatch.
Suspect an outage on a website right now?
Run an on-demand DNS and HTTP check using our website status tool.