ssl-guides 2026-12-02 ⏱ 4 min read

What Is an SSL Handshake and Why Does It Fail?

What Is an SSL Handshake and Why Does It Fail?

An SSL handshake is the opening exchange between a browser and a server that sets up a secure HTTPS connection. Before any page content moves, both sides agree on a protocol version and ciphers, the server proves its identity, and fresh keys are derived. When it fails, the error names one of those three steps.

SSL handshake or TLS handshake?

The name "SSL" is a leftover. SSL 2.0 and 3.0 are long deprecated and insecure. What websites use today is TLS, mostly versions 1.2 and 1.3. People still say "SSL handshake" and "SSL certificate" out of habit. The difference is covered in SSL vs TLS vs HTTPS. The message-by-message detail is in how the TLS handshake works.

What the SSL handshake accomplishes

  • Version and cipher agreement: both sides pick the best option they both support.
  • Server authentication: the server shows a certificate and proves it holds the private key.
  • Key creation: fresh session keys are derived, so each connection has its own.
  • Optional client authentication: used for mutual TLS in APIs and internal systems.

Why it matters for speed

The handshake happens before the first byte of your page. TLS 1.3 needs one round trip, while TLS 1.2 needs two. Session resumption lets returning visitors skip most of the work. That is one reason upgrading is worth it, as shown in TLS 1.2 versus TLS 1.3.

Common handshake failures

SymptomUsual causeFirst thing to check
No shared cipher, protocol version errorServer only allows old or odd settingsEnabled TLS versions and cipher list
Certificate verify failedMissing intermediate or untrusted CAChain sent by the server
Certificate name mismatchDomain not in the SAN listNames on the certificate
Expired certificateRenewal did not runExpiry date
Handshake failed behind a CDNCDN cannot validate the origin certificateCDN SSL mode and origin certificate
Wrong certificate for a hostnameClient did not send SNITest with the servername flag

Debug it with OpenSSL

openssl s_client -connect example.com:443 \
  -servername example.com -tls1_3

Read the output from the top. "Verification: OK" at the end means the chain was accepted. An error line such as "unable to get local issuer certificate" points at a chain problem. If the command prints no certificate at all, the failure is earlier, such as a protocol mismatch or a blocked port.

Try forcing a version with -tls1_2 to see whether the server supports it. If the handshake works with one flag and not the other, you have found the mismatch.

Where to look next

Most failures come down to three things: the certificate chain, the names on the certificate and the protocol settings. Check them in that order.

Why some handshakes are slow

A slow handshake adds delay before the page even starts. Typical causes are distance to the server, large certificate chains, an unnecessary extra intermediate, and servers that do not support TLS 1.3 or session resumption. A long chain of three or four certificates adds bytes to the first flight. Keep the chain as short as your CA allows and send only the leaf and intermediates.

Quick wins

  • Enable TLS 1.3.
  • Turn on session resumption (tickets or cache).
  • Use a CDN edge close to your visitors so the round trip is short.
  • Choose ECDSA certificates where your audience allows it, because the signature is smaller.

Measure the effect with your browser's network panel, where the "SSL" or "TLS" portion of the timing breakdown shows the handshake cost. Compare before and after a change, using several runs, since single measurements vary a lot.

If you only remember one thing, remember the order: protocol, then certificate, then keys. Troubleshoot in that order and most handshake failures resolve quickly.

When you ask for help, include the exact error text, the output of the OpenSSL command above and the server software version. Those three details let someone else find the cause in minutes instead of guessing across a long list of possibilities.

Related reading: what the private key does and TLS-ALPN-01 validation.

Frequently Asked Questions

How long should a handshake take?

A TLS 1.3 handshake to a nearby server is a single round trip, so a few tens of milliseconds. Distance and an extra intermediate add to that.

Why does the handshake fail only on some devices?

Old devices may not support the protocol versions or ciphers you allow, or they may lack the root that signs your chain.

Does the handshake happen on every request?

Not on every request. Session resumption lets a returning client skip most of it, and HTTP/2 and HTTP/3 reuse one connection for many requests.

What does a name mismatch mean in the handshake?

The hostname the client asked for is not in the certificate's SAN list. Reissue with every name you serve.

Can I see the handshake in a browser?

Yes. Open developer tools, then the Security panel for the connection, or the network timing breakdown for the TLS portion.

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant