Trust a specific CA certificate file.
Section: HTTP Auth and Security
Use a custom CA bundle
bash
bash
curl --cacert ca.pem https://internal.example.comExplanation
Useful for private PKI or local development 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 HTTP Auth and Security
Mutual TLS with client cert
Authenticate using a client certificate and key.
Skip TLS certificate verification
Disable certificate verification for testing only.