Skip to content

Commit 4b92859

Browse files
authored
[ZT] cURL cert instructions (#25719)
1 parent f8e1cc9 commit 4b92859

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/content/docs/cloudflare-one/connections/connect-devices/user-side-certificates/manual-deployment.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,26 @@ To configure Git to trust a Cloudflare certificate, run the following command:
482482
git config --global http.sslcainfo [PATH_TO_CLOUDFLARE_CERT]
483483
```
484484

485+
### cURL
486+
487+
By default, cURL will use your operating system's native certificate store. To force cURL to use your default certificate, add the `--ca-native` flag to the command. For example:
488+
489+
```curl
490+
curl --ca-native https://example.com
491+
```
492+
493+
#### cURL on macOS
494+
495+
To use a Cloudflare root certificate with cURL on macOS, [install the certificate to the operating system keychain](#macos). cURL will use the macOS root certificate by default.
496+
497+
#### cURL on Windows
498+
499+
To use a Cloudflare certificate with the version of cURL preinstalled on Windows or another version that uses the Schannel (WinSSL) backend, [install the certificate to the Windows certificate store](#windows). If you use an older or custom version of cURL built with the OpenSSL backend, you will need to [manually configure cURL to use the certificate](#curl).
500+
501+
#### cURL on Linux
502+
503+
To use a Cloudflare root certificate with cURL on Linux, [install the certificate to your distribution's certificate store](#linux). cURL will use the Linux root certificate by default.
504+
485505
### npm
486506

487507
1. [Download a Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.pem` format.

0 commit comments

Comments
 (0)