I have been running TLS termination on bare metal for years, which means I have seen every certbot edge case, every missing intermediate, every hostname mismatch, and plenty of genuinely exotic handshake failures. SSL errors are the error class with the most precise diagnostics available (openssl gives you the actual handshake bytes) and the class people are most scared to touch, because it involves crypto and browser trust stores and the word “certificate.” It does not need to be scary.
Every SSL error you are likely to encounter falls into one of ten specific failure modes. Once you can name the failure mode from the error code, the fix is usually a single config change or a single cert reissue. In this guide I will walk you through all ten, show you the openssl commands I reach for first, and cover the server-specific gotchas for nginx, Caddy, Apache, and AWS ACM.
1. What an SSL Error Actually Means
When you open https://example.com, two things happen before any HTTP request is sent. First, the browser and server perform a TLS handshake: exchange supported protocol versions, agree on a cipher, and exchange key material. Second, the browser validates the server’s certificate: is it signed by a trusted CA, is it within its validity window, does the hostname match, is it revoked, is the signature algorithm acceptable. Only if both of those succeed does the browser send a single byte of HTTP.
An “SSL error” means one of those two phases failed. The browser does not get to the HTTP layer, which is why refreshing the page does nothing and why there is no status code. What you see instead is a browser interstitial, typically titled “Your connection is not private” or “This Connection Is Not Private,” with a specific error code underneath that points to the exact failure.
Two notes on terminology. First, “SSL” and “TLS” are the same thing for practical purposes. SSL 2.0 and 3.0 are dead and disabled. Everything labeled SSL in a browser, in certbot, or in your vendor’s dashboard is really TLS 1.2 or TLS 1.3. Second, the cause can sit on the server, on the visitor’s device or on the network in between. A 2017 Google study of Chrome certificate warnings found that more than half came from the visitor’s device or network, not from a misconfigured server.
If you want a deeper dive into how the chain of trust itself is structured, the SSL certificate chain guide covers that ground. Here we focus on what goes wrong and how to repair it.
2. The Ten Most Common SSL Errors, Decoded
Every SSL error I have ever debugged in production fell into one of these ten buckets. The icon, the raw error code, and the one-line diagnosis are the pattern I use to triage in about ten seconds.
Handshake protocol error
ERR_SSL_PROTOCOL_ERROR
The TLS handshake broke in a way Chrome has no more specific code for, such as a malformed or unexpected handshake message. When client and server share no TLS version or cipher, Chrome shows ERR_SSL_VERSION_OR_CIPHER_MISMATCH instead, and that is also what a TLS 1.0/1.1-only server gets now.
Unknown or self-signed issuer
NET::ERR_CERT_AUTHORITY_INVALID
The chain terminates at a CA the browser does not trust. Self-signed certs, internal CAs, and missing intermediate certificates all land here. On a public site, check first that the server sends the intermediate.
Expired or not yet valid
NET::ERR_CERT_DATE_INVALID
The leaf, an intermediate, or the client clock is outside the cert’s validity window. Check both the cert expiry and the system clock on the client. A wrong client clock is a common cause: in Google’s 2017 study it caused more than 30% of certificate warnings on Windows.
Hostname mismatch
NET::ERR_CERT_COMMON_NAME_INVALID
The hostname in the URL is not in the certificate’s Subject Alternative Name list. Common after a domain rename, a vhost misconfig, or hitting a server by IP when the cert is bound to a name.
Certificate revoked
NET::ERR_CERT_REVOKED
The CA has marked this specific cert as revoked via OCSP or CRL, usually because the private key was compromised or mis-issued. You cannot ignore this one. Reissue the cert.
Weak signature (SHA-1)
NET::ERR_CERT_WEAK_SIGNATURE_ALGORITHM
The cert was signed with an algorithm the browser no longer accepts, such as SHA-1, which Chrome stopped accepting in Chrome 56 (January 2017). A key that is too small shows a different code, NET::ERR_CERT_WEAK_KEY. Reissue with SHA-256 and at least RSA-2048 or ECDSA P-256.
Version or cipher suite mismatch
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
The server supports no TLS version the client will use, or no common cipher. Modern Chrome disables TLS 1.0 and 1.1 entirely. Enable TLS 1.2 and 1.3 and drop RC4, 3DES, and EXPORT ciphers.
SNI mismatch
ERR_SSL_UNRECOGNIZED_NAME_ALERT
The client sent an SNI hostname the server did not recognise. Common on multi-tenant origins or CDNs where the default vhost has no matching cert. Confirm the SNI value with openssl -servername.
Site without HTTPS
Your connection to this site is not secure
Chrome shows this in the site information panel (click “Not secure” at the left of the address bar) for a page loaded over plain HTTP. Since Chrome 154 on computers (September 2026) and Chrome 155 on Android, “Always use secure connections” is on by default for public sites, so before you first open such a site, Chrome shows a full-page warning that it does not support HTTPS. It is not a certificate error, so the fix is to set up HTTPS. A certificate problem shows “Your connection is not private” instead, with a NET::ERR_CERT_* code that names the failure.
Mixed content on an HTTPS page
Mixed Content (console warning)
Not a handshake error: the page loaded over HTTPS, but it requests an http:// subresource. Browsers upgrade images, audio and video to HTTPS and block scripts, stylesheets and other mixed requests. Fix with https:// URLs and a Content-Security-Policy upgrade-insecure-requests directive.
3. For Visitors: What You Can Actually Do
More than you might think. A 2017 Google study of Chrome certificate warnings found that more than half were caused by the visitor’s device or network, not the server. Before you give up or report the site, try these in order:
- Check your system clock. A wrong date is one of the biggest causes of certificate errors on personal devices: in that study, clock errors caused more than 30% of certificate warnings on Windows, and a dying CMOS battery is one suspected cause. Certificates are valid only within a specific time window, so if your date is wrong, valid certs can look expired (or not yet valid) and the browser correctly refuses them. Set your clock to automatic.
- Try a different network. Switch from WiFi to cellular. Hotel and airport Wi-Fi often redirects secure connections to its sign-in page until you log in, and school and corporate networks may inspect traffic with their own certificate. If the site loads on cellular but not on WiFi, the WiFi is the problem, not the site.
- Update your browser. An out-of-date browser or operating system can reject certificates chained to roots added after its last update. Chrome ships its own root store, and Safari uses the one built into macOS or iOS, so update both. This is also the fix when a browser starts rejecting a site that used to work because of a root expiry event: when DST Root CA X3 expired on 30 September 2021, older devices that did not trust the newer ISRG Root X1 started showing certificate warnings on Let’s Encrypt sites.
- Confirm it is not just you. Open our website checker or any independent “is-it-down” service and enter the URL. If the checker also reports a TLS failure, the cert is genuinely broken on the server. If the checker shows the site as up, the problem is local to your device or network.
- Report it to the site owner. Many small sites have no external TLS monitoring, so a quick email or social post may be the first the owner hears of it. Include the exact error code (NET::ERR_CERT_DATE_INVALID etc.), it narrows the fix to seconds.
What usually will not help: reinstalling your browser or running a virus scan. One exception: antivirus software that inspects HTTPS sits in the middle of your connections, and a fault in it can cause these warnings, so check its HTTPS scanning setting.
4. For Site Owners: Diagnose From the Cert Outward
The rule that saves the most time: diagnose SSL errors starting at the certificate, then the chain, then the handshake, then the server config. Work outward from the smallest, most concrete artifact first. Often you never need to look past the cert itself.
Step 1: Read the cert directly
The fastest command I know for “is the cert valid, for the right name, within its window”:
# Pull the cert the server is actually serving
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com \
</dev/null 2>/dev/null | openssl x509 -noout -dates -subject -issuer
# Output:
# notBefore=Feb 14 00:00:00 2026 GMT
# notAfter=May 15 23:59:59 2026 GMT
# subject=CN=yourdomain.com
# issuer=CN=R11, O=Let's Encrypt, C=USCheck the notAfter date (an expired cert is a common single failure), the SAN list (must include the hostname you are serving; browsers ignore the CN), and the issuer (should be a public CA, not your own name).
Step 2: Verify the chain, not just the leaf
Browsers need the leaf and the intermediate. The root is already in their trust store. If your server only sends the leaf, Chrome may fetch the missing intermediate itself and Firefox may fill it in from its preloaded list, but clients such as curl on Linux and openssl fail. Check the depth count:
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com \
-showcerts </dev/null 2>&1 | grep -E "^(depth|verify)"
# Example output (OpenSSL 3, a Let's Encrypt ECDSA certificate):
# depth=3 C=US, O=Internet Security Research Group, CN=ISRG Root X2
# verify return:1
# depth=2 C=US, O=ISRG, CN=Root YE
# verify return:1
# depth=1 C=US, O=Let's Encrypt, CN=YE2
# verify return:1
# depth=0 CN=yourdomain.com
# verify return:1If you only see depth=0, your server is not sending the intermediate and you need to concatenate it into your fullchain file. The certificate chain guide covers the exact server configs for nginx, Apache, and Caddy.
Step 3: Confirm SNI resolves to the right vhost
If your origin hosts multiple domains behind the same IP, the client sends the hostname in the TLS SNI extension and the server uses it to pick the right certificate. When SNI routing breaks, you get the wrong cert and a name-mismatch error:
# With SNI (normal browser behavior)
openssl s_client -servername yourdomain.com -connect yourdomain.com:443 \
</dev/null 2>/dev/null | openssl x509 -noout -subject
# Without SNI (tests the default vhost)
openssl s_client -noservername -connect yourdomain.com:443 \
</dev/null 2>/dev/null | openssl x509 -noout -subjectIf those two commands return different subjects, your SNI-less default vhost is something you probably forgot about. Older clients and some internal tools do not send SNI. Either add a default cert that covers everything, or return 421 Misdirected Request.
Step 4: Check the renewal pipeline
A cert that was valid yesterday and broken today almost always means an automated renewal failed silently. The three places I look first:
# Let's Encrypt via certbot
sudo tail -50 /var/log/letsencrypt/letsencrypt.log
# Caddy auto-HTTPS
sudo journalctl -u caddy --since "24 hours ago" | grep -i "acme\|certificate"
# systemd timer status (for cron-based renewals)
sudo systemctl list-timers --all | grep -i "certbot\|renew"The first ERROR line in the logs tells you what broke: ACME challenge unreachable, rate limit tripped, DNS provider API failing, or a stale web root path left over from a deploy. Let’s Encrypt’s limit of 5 certificates for the exact same set of names every 7 days has burned me more than once on a deploy loop.
Step 5: Reload the web server, do not just replace the file
A renewed cert on disk does nothing until your web server reloads. The quietest production outages I have had were exactly this: new cert in the right path, process still serving the old one because nobody sent a SIGHUP:
# nginx: graceful reload, does NOT drop connections
sudo nginx -t && sudo nginx -s reload
# Apache
sudo apachectl configtest && sudo systemctl reload apache2
# Caddy reloads automatically on cert rotation, but if you edited Caddyfile:
sudo caddy reload --config /etc/caddy/CaddyfileReload, not restart. A restart drops in-flight connections and disrupts healthy endpoints. A reload is the right default.
Step 6: Check cipher and protocol compatibility
If the error is ERR_SSL_VERSION_OR_CIPHER_MISMATCH the cert is fine, the negotiation failed. Enumerate what the server offers:
# Fast: just the supported versions
nmap --script ssl-enum-ciphers -p 443 yourdomain.com
# Deep: testssl.sh gives grades and a long report
testssl.sh yourdomain.comIn 2026, your server should offer TLS 1.2 and TLS 1.3 and nothing else. Disable TLS 1.0 and 1.1. Drop RC4, 3DES, and EXPORT ciphers. If your upstream terminates TLS in front of nginx (Cloudflare, an ALB, a WAF), any of these checks points at the frontmost TLS endpoint, which is usually what you want to fix first.
Rather have it fixed for you? Acefina, the team behind Visual Sentinel, repairs broken and hacked sites for a fixed price.
5. Browser and Server Error Phrasing
The same underlying cert failure shows up with different wording in each browser and each server. Matching the phrasing to the real cause saves a surprising amount of time.
| Platform | Error Message | Real Cause & Fix |
|---|---|---|
| Chrome | NET::ERR_CERT_* | The exact NET::ERR_CERT_* code is printed under the warning text; click Advanced for the explanation in words. Chrome is the most verbose of the major browsers about the underlying cause, which makes it the fastest path to the real failure mode. |
| Safari | This Connection Is Not Private | On the warning page, click Show Certificate to review the certificate and what Safari found wrong with it, for example that it isn’t trusted or was signed by an untrusted issuer. |
| Firefox | SEC_ERROR_UNKNOWN_ISSUER | Firefox uses its own bundled Mozilla trust store (not the OS one). A cert trusted on Chrome/Windows can still fail on Firefox if the CA was removed from Mozilla’s root program. Use View Certificate on the warning page to see the certificate Firefox received. |
| Edge | NET::ERR_CERT_* | Edge is built on Chromium and shows the same NET::ERR_CERT_* codes as Chrome. Since Edge 112 on Windows and macOS it ships its own root list from the Microsoft Trusted Root Program, plus any roots you or your company installed, so check that your CA is trusted in every major root program. |
| nginx | SSL_do_handshake() failed | Check ssl_certificate points to a fullchain file (leaf + intermediate concatenated) and ssl_certificate_key points to the matching private key. After replacing files on disk, run "nginx -s reload", not "restart". |
| Caddy | no certificate available for '<hostname>' | Caddy handles ACME automatically in almost every case. When it fails, check the Caddy log for the actual ACME error (rate limit, DNS challenge, port 80 unreachable). The global option "auto_https disable_certs" turns certificate automation off, so use it only if you load your own certificates. |
| Apache | AH02032: Hostname provided via SNI and hostname provided via HTTP have no compatible SSL setup | The SNI name and the Host header matched different vhosts whose SSL settings are not compatible, so Apache answers 421 Misdirected Request. Give those vhosts compatible SSL settings or serve both names from one vhost. SSLStrictSNIVHostCheck does not apply here: it only covers clients that send no SNI. |
| AWS ACM / ALB | HTTP 502 from the load balancer | A 502 can mean the ALB hit a TLS handshake error with a target. The ALB does not validate target certificates, so a self-signed or expired cert on the target is not the cause. Check that the target serves TLS on the target group’s port, or switch the target group to HTTP if the hop stays inside the VPC. |
Firefox-specific gotcha: Firefox ships its own Mozilla trust store, independent of macOS and Windows. A cert that validates cleanly in Chrome on a Mac can still fail in Firefox on the same Mac if the root was removed from the Mozilla program. Use View Certificate on the Firefox warning page to see exactly which cert the browser received.
6. Diagnosing With openssl, curl, and testssl.sh
Three commands cover most SSL debugging. The first is the handshake dump:
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com
# Look at:
# - "Verify return code: 0 (ok)" good
# - "Verify return code: 10 (cert has expired)"
# - "Verify return code: 18 (self-signed)"
# - "Verify return code: 20 (unable to get local issuer)" missing intermediate
# - "Verify return code: 21 (unable to verify the first certificate)"The second is curl, which fails fast and gives you a readable error:
curl -vI https://yourdomain.com/
# Useful flags:
# --resolve yourdomain.com:443:<origin-ip> bypass CDN, test origin directly
# --cacert /path/to/ca.pem test against a custom CA
# -k ignore errors (debugging only, never in prod)The third is testssl.sh, which enumerates versions and ciphers and grades the server:
# Full report (takes 2-3 minutes)
testssl.sh yourdomain.com
# Protocols and cipher categories only
testssl.sh --protocols --std yourdomain.com
# Only HIGH and CRITICAL findings, saved to a JSON file
testssl.sh --severity HIGH --jsonfile high.json yourdomain.comBetween those three you will nail down the root cause in almost every case. For a faster single-purpose check, our free SSL certificate checker runs the same validation from outside your network and reports separately whether the chain is complete, whether the certificate covers the hostname, the TLS version and the days to expiry, which is useful when you do not have a shell on the server.
7. How to Prevent SSL Errors From Reaching Users
Four structural changes cut SSL incidents to near zero on my own infrastructure. None of them is clever, all of them are boring, that is why they work:
- Automate renewal and reload in one unit. certbot
--deploy-hook "systemctl reload nginx", or let Caddy handle it end-to-end. The renew step and the reload step must live in the same systemd service or the same deploy hook, not two independent crons. A successful renew with no reload is an outage on a timer: the server keeps serving the old cert until it expires, about 30 days later with certbot’s default on a 90-day cert. - Enable HSTS with preload. Once your site is solid, add
Strict-Transport-Security: max-age=63072000; includeSubDomains; preloadand submit to hstspreload.org. Preloading means browsers refuse plain HTTP to your domain even on the first visit. The cost is that it is hard to undo: removal from the list takes months to reach users, so do this only when your HTTPS setup is stable. - Enforce modern TLS. The TLSRef Configurator, which replaced Mozilla’s SSL Configuration Generator, publishes an “intermediate” config for nginx, Apache, HAProxy, AWS ALB and more. Copy it verbatim (TLS 1.2 + TLS 1.3, modern cipher suites, ECDHE key exchange). Delete TLS 1.0 and 1.1. You should never be hand-writing a cipher list in 2026.
- Use client-cert mTLS where it fits. For admin endpoints, internal dashboards, or API backends that only talk to a known set of clients, pin mTLS. Behind a CDN, the same idea protects the origin: with authenticated origin pulls, the origin accepts only connections that present the CDN’s client certificate, so nobody can skip the CDN and reach the origin directly.
The structural theme is: make valid TLS the only thing your server can serve, and monitor for drift continuously. Which brings us to the next section.
8. Monitor SSL Expiry Before the Cert Breaks
The hardest category of SSL error to catch locally is the one where the cert on disk is fine but the handshake the public gets is broken. Local cron reading /etc/ssl/fullchain.pem misses hostname mismatches. It misses SNI misconfig. It misses “we renewed but never reloaded nginx.” It misses the intermediate being removed from the bundle.
The useful evidence is a real TLS handshake from outside your network. A local renewal job can complete while the public endpoint keeps serving an old certificate, the wrong hostname, or an incomplete chain. External monitoring checks what visitors actually receive and can warn before the served certificate expires.
Catching SSL errors externally
Our SSL monitoring performs a real TLS connection against your public URL on the uptime schedule for your plan. It checks hostname and trust authorization, stores served leaf-certificate evidence, and alerts at 13, 3, and 1 day before expiry by default, with optional 20 and 6 day tiers. It does not audit cipher suites, protocol versions, OCSP, or CRLs.
Start a 10-day free trial of SSL monitoring (no card with a work email)Beyond monitoring, the other big win is a staging probe that runs the same handshake against a non-public staging domain. If the probe fails in staging, the renewal pipeline has a problem you can fix before it hits prod. Belt and braces.
9. Frequently Asked Questions
Related Guides
What Is an SSL Certificate Chain?
The companion guide to this one. Explains how the chain of trust is structured, how browsers walk it, and why a missing intermediate is one of the most common cert errors in production.
What Is 502 Bad Gateway and How to Fix It
The other half of the reverse-proxy failure surface. TLS handshake errors and 502s often share the same proxy-to-origin root cause.
SSL Monitoring by Visual Sentinel
External SSL handshake monitoring on uptime checks from Europe, the US and Asia Pacific (Asia Pacific on paid plans), with expiry alerts at 13, 3, and 1 day by default (plus optional 20 and 6 day tiers).
Rai Ansar
Founder of Visual Sentinel
Rai Ansar is the founder of Visual Sentinel. He writes about website monitoring, reliability, and catching the failures that uptime checks miss. More from Rai Ansar.
Monitor TLS Trust and Expiry Externally
External hostname and trust authorization, served leaf-certificate evidence, and expiry alerts at 13, 3, and 1 day out, plus optional 20 and 6 day tiers. Use a dedicated scanner when you need cipher, protocol, or revocation analysis.
Start SSL Monitoring10-day free trial, no card with a work email · See all plans
Certificate checks for your own domain cover expiry, hostname mismatches and broken trust chains.
See your site checked
Add your site and we check its uptime, SSL certificate and screenshots free for 3 days. Then try a paid plan free for 10 days (no card with a work email) or subscribe, from $15 USD a month.
Check my site free