`curl: (35) error:0A00010B:SSL routines::wrong version number`
BeginnerTroubleshootingTLS and certificate errors
Answer
Likely causes → Client speaks TLS to a port that answers plain HTTP (e.g. https://host:80, or a proxy port expecting HTTP CONNECT), or https_proxy is set to https://proxy:3128 when the proxy speaks plain HTTP.
Diagnose →
curl -v http://host:8080/
env | grep -i proxy
Fix → Use the correct scheme/port; set https_proxy=http://proxy:3128 (the proxy URL scheme describes how you talk to the proxy).
Prevent → Keep port conventions consistent and document proxy variables.
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