TLS handshake takes 2–3 seconds from some locations.
IntermediateTroubleshootingTLS and certificate errors
Answer
Likely causes → Long RTT multiplied by round trips (TLS 1.2 = 2 RTT), OCSP checks by the client to a slow responder, a huge chain, or the server is CPU-bound on RSA 4096.
Diagnose →
curl -o /dev/null -s -w 'dns:%{time_namelookup} tcp:%{time_connect} tls:%{time_appconnect} ttfb:%{time_starttransfer}\n' https://host/
openssl s_client -connect host:443 -servername host -status </dev/null | grep -A2 'OCSP'
Fix → Enable TLS 1.3, OCSP stapling, session resumption, ECDSA certificates, and terminate TLS closer to users (CDN).
Prevent → Track time_appconnect from multiple regions in synthetic checks.
More on TLS and certificate errors
`curl: (60) SSL certificate problem: certificate has expired`Beginner`curl: (60) SSL certificate problem: unable to get local issuer certificate`Beginner`SSL: no alternative certificate subject name matches target host name 'api.example.com'`BeginnerSome clients get the wrong certificate (another site's) from a shared IP.Intermediate`SSL routines::sslv3 alert handshake failure` from `openssl` or curl.IntermediatePython `requests` fails with `SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain`.Beginner