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
- Record curl -V, the exact request and complete error text, redacting credentials.
- Confirm HTTPS reaches the intended TLS listener and check explicit proxy settings.
- 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.
How to fix it
- Correct a wrong port, proxy scheme or TLS termination configuration where the evidence points to it.
- Resolve a documented secure-protocol compatibility issue without downgrading protections.
- 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
- Diagnose TLS handshake, protocol and cipher failures
- Monitor custom TLS ports, STARTTLS and private services