Interview Prep/Networking/HTTP, TLS & Certificates

How would you debug a TLS handshake failure?

AdvancedConceptHTTP, TLS & Certificates
Answer

Check with openssl s_client which step fails. Typical errors: certificate verify failed (chain, expiry or CA), tlsv1 alert protocol version (version mismatch), no shared cipher, handshake failure (SNI missing or client cert required), hostname mismatch.

openssl s_client -connect host:443 -servername host -tls1_2 </dev/null
curl -vI --tlsv1.2 --tls-max 1.2 https://host

Then compare dates, SANs, intermediates, and capture with tcpdump -w to inspect the alert in Wireshark. Also check the system clock.

All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates