SSL / monitoring TECHNICAL HANDBOOK / 2026

SSL ERRORS

curl: (35): causes and fixes

curl failed while establishing the TLS connection. Read the accompanying message and check the destination port, proxy settings and TLS handshake logs.

What it means

The failure can occur while negotiating with the destination or a configured proxy. For example, a TLS client reaching a plaintext service can receive a protocol-level error. Keep the request scheme, port and proxy environment with the transcript.

What to check

  1. Record curl -V, the exact request and complete error text, redacting credentials.
  2. Confirm HTTPS reaches the intended TLS listener and check explicit proxy settings.
  3. Correlate the connection time with TLS-terminator logs and any client-certificate requirements.

Test the connection

curl -V
curl -Iv --connect-timeout 10 --max-time 20 https://www.example.com/

Record the curl version, TLS backend, peer address and full error. In Windows PowerShell, use curl.exe.

Choose Windows, macOS or Linux commands →

How to fix it

  1. Correct a wrong port, proxy scheme or TLS termination configuration where the evidence points to it.
  2. Resolve a documented secure-protocol compatibility issue without downgrading protections.
  3. For required mutual TLS, use the approved identity and chain.

Check the fix

Repeat the request after the change. If curl now reports a certificate-verification error, follow that error’s chain, identity or validity checks next.

Details worth checking

Check the proxy scheme as well as the website scheme. An HTTPS request sent through a proxy with the wrong protocol can fail before reaching the website’s TLS listener.

Related guides

Related errors

References