Interview Prep/Networking/TLS and certificate errors

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.

All Networking questions Roadmap: Networking for DevOps

More on TLS and certificate errors