Send a client certificate when the proxy requires mTLS.
Section: Proxy Auth and Tunnels
Client cert for proxy authentication
bash
bash
curl --proxy-cert proxy-client.crt --proxy-key proxy-client.key -x https://proxy.example.com:8443 https://example.comExplanation
Useful in locked-down corporate environments.
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.
Trust a custom CA for proxy TLS
Use a custom CA certificate file for the HTTPS proxy.
Tunnel through an HTTP proxy
Use CONNECT tunneling for non-HTTP protocols when needed.
Use a PKCS#12 client certificate
Authenticate with a P12 / PFX certificate bundle.
Skip TLS verification for HTTPS proxy
Disable certificate verification for the HTTPS proxy connection.