cURL Auth, TLS, and Proxy Security/Trust a custom CA for proxy TLS

Use a custom CA certificate file for the HTTPS proxy.

Section: Proxy Auth and Tunnels

Trust a custom CA for proxy TLS

bash
bash
curl --proxy-cacert proxy-ca.pem -x https://proxy.example.com:8443 https://example.com
Explanation

Origin CA settings and proxy CA settings are independent.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Proxy Auth and Tunnels
Proxy with basic auth
Authenticate to a proxy with username and password.
OpenIn sheetbashsame section
Use an HTTPS proxy
Route traffic through an HTTPS proxy.
OpenIn sheetbashsame section
Client cert for proxy authentication
Send a client certificate when the proxy requires mTLS.
OpenIn sheetbashsame section
Tunnel through an HTTP proxy
Use CONNECT tunneling for non-HTTP protocols when needed.
OpenIn sheetbashsame section
Skip TLS verification for HTTPS proxy
Disable certificate verification for the HTTPS proxy connection.
OpenIn sheetbash3 tag match
Require TLS 1.2
Require TLS 1.2 or newer for the connection.
OpenIn sheetbash2 tag match