cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to host:443
The TLS handshake failed — protocol/cipher mismatch, a proxy interfering, or the server closed the connection.
cURL error 35SSL connect error Meaning
Error 35 happens before certificate validation (that’s error 60). Old OpenSSL versions without TLS 1.2/1.3, servers requiring SNI, or firewalls resetting TLS connections are typical.
Common causes
- Outdated OpenSSL/cURL on the server
- Server requires TLS 1.2+/SNI
- Firewall or proxy resetting the connection
- Wrong port (plain HTTP on 443)
⚡ Quick fix
- Test with
openssl s_client -connect host:443 -servername host - Update OpenSSL/cURL/PHP
- Check proxy settings
Detailed fix by platform
Linux
curl -v https://hostfrom the server shows where the handshake stops
How to diagnose
- Handshake — Where does openssl s_client stop?
- Versions — OpenSSL version on server
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in PHP
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026