Interview Prep/Networking/TLS and certificate errors

`SSL routines::sslv3 alert handshake failure` from `openssl` or curl.

IntermediateTroubleshootingTLS and certificate errors
Answer

Likely causes → No overlap in protocol versions or cipher suites, the server requires a client certificate (mTLS), or SNI is missing/wrong and the server has no default cert.

Diagnose →

openssl s_client -connect host:443 -servername host -tls1_2
openssl s_client -connect host:443 -servername host -tls1_3
nmap --script ssl-enum-ciphers -p 443 host

Fix → Enable a common protocol (TLS 1.2 + 1.3) and modern ECDHE ciphers on both sides. If the server asks for a client certificate, send it (curl --cert client.crt --key client.key).

Prevent → Use a standard TLS profile (Mozilla "intermediate") and test old clients before tightening.

All Networking questions Roadmap: Networking for DevOps

More on TLS and certificate errors