`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.
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.IntermediatePython `requests` fails with `SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain`.BeginnerNode.js app logs `Error: unable to verify the first certificate` calling an internal API.Intermediate