Skip to content
Latchkey

curl Exit Code 35 in CI: SSL/TLS Handshake Failure

curl exit code 35 means the SSL/TLS handshake failed before any data could be exchanged.

A step exiting 35 from curl connected at the TCP level but could not negotiate a secure session.

What it means

Exit 35 is curl's CURLE_SSL_CONNECT_ERROR. The TLS handshake failed - a protocol version mismatch, an unsupported cipher, or an interrupted negotiation.

Common causes

  • The server requires a TLS version the client disabled (or vice versa).
  • A cipher/curve mismatch.
  • A MITM proxy interfering with the handshake.

How to fix it

Run with -v to see the handshake detail, align TLS versions/ciphers, and update the CA bundle or curl/OpenSSL version. A momentarily flaky handshake can clear on retry.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →