Troubleshooting guide
SSL handshake failed: causes and fixes
A failed TLS handshake means the browser and server could not agree on a secure connection. The certificate, its chain or the protocol settings are usually to blame.
3 min read9 sectionsUpdated
On this page
# Show the certificate chain the server presents (SNI set with -servername)
openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null
# Just the leaf certificate's subject, issuer, names and dates
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null \
| openssl x509 -noout -subject -issuer -dates -ext subjectAltName
# Does the server accept TLS 1.2 and 1.3?
openssl s_client -connect example.com:443 -servername example.com -tls1_2 </dev/null | head -n 5
openssl s_client -connect example.com:443 -servername example.com -tls1_3 </dev/null | head -n 5| Cause | What you see | Fix |
|---|---|---|
| Expired certificate | notAfter is in the past | Renew; check auto-renewal (certbot timer, ACME client) |
| Name mismatch | subjectAltName lacks the hostname | Issue a certificate covering every hostname you serve |
| Missing intermediate | Verify error "unable to get local issuer certificate" | Serve the full chain (fullchain.pem), not only the leaf |
| Old protocol or ciphers | Handshake fails on modern clients | Enable TLS 1.2 and 1.3 with modern ciphers |
| Wrong certificate for SNI | A default certificate for another site is served | Check server_name blocks and SNI routing |
| Clock skew on the client or server | "Not yet valid" errors | Fix NTP |
Why auto-renewal still fails
Let's Encrypt certificates last 90 days and auto-renewal is reliable, until it is not: a DNS change breaks the HTTP-01 challenge, a firewall blocks port 80, the renewal hook does not reload Nginx, or the server running certbot was decommissioned. In each case the certificate renews quietly in a test, or not at all, and expires weeks later. That is why an independent expiry check matters even with automation. Read more in SSL certificate expiry monitoring.
Monitor certificates from outside
- Alert 21 to 30 days before expiry, and again closer to the date.
- Check every hostname that serves HTTPS, including API and status subdomains.
- Check the chain the way a client would, not just the date.
VitalRix uptime monitoring includes SSL checks that warn before a certificate expires, alongside HTTP checks on the same hosts.
Why does the site work in Chrome but fail in curl or on older phones?
Browsers can fetch missing intermediate certificates; many other clients cannot. Serve the full chain to fix it for everyone.
Is ERR_SSL_PROTOCOL_ERROR the same thing?
It is Chrome’s message for a handshake that failed at the protocol level, often because of a misconfigured server, a proxy, or a port serving plain HTTP on 443.
Check it now, free
- SSL certificate checker: Expiry date, issuer, chain and host name match.
Related reading
- Cloudflare error 525: SSL handshake failed: Fix Cloudflare error 525 SSL handshake failed: origin with no certificate, disabled SNI, cipher mismatches and Full mode, with openssl tests against the origin.
- ERR_HTTP2_PROTOCOL_ERROR: causes and how to fix it: Fix ERR_HTTP2_PROTOCOL_ERROR in Chrome: invalid response headers, crashed backends behind HTTP/2 proxies, buffer limits and antivirus interference.
- ERR_BAD_SSL_CLIENT_AUTH_CERT: how to fix it: Fix ERR_BAD_SSL_CLIENT_AUTH_CERT: client certificates that are expired, untrusted or not selected, mutual TLS settings and corporate device certificates.
- ERR_SSL_PROTOCOL_ERROR: how to fix it: Fix ERR_SSL_PROTOCOL_ERROR ("This site can't provide a secure connection"): HTTP on port 443, old TLS versions, broken TLS setups, proxies and antivirus.
- ERR_QUIC_PROTOCOL_ERROR: how to fix it: Fix ERR_QUIC_PROTOCOL_ERROR: HTTP/3 over QUIC blocked by firewalls, proxies or antivirus, broken UDP paths, and server and CDN configuration fixes.
- 401 Unauthorized: causes, fixes and how it differs from 403: Fix 401 Unauthorized errors: expired tokens, missing Authorization headers, proxies stripping credentials and clock skew, plus how 401 differs from 403.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.