Install certificate manually·续2

To use a Cloudflare root certificate with cURL on Linux, install the certificate to your distribution's certificate store. cURL will use the Linux root certificate by default.

GNU Wget

By default, GNU Wget will use your operating system's native certificate store. To force Wget to use your default certificate, add the --ca-certificate flag to the command.

To use a Cloudflare root certificate with Wget on macOS, install the certificate to the operating system keychain. Wget will use the macOS root certificate by default.

To use a Cloudflare certificate with Wget on Windows, install the certificate to the Windows certificate store. Wget will use the Windows root certificate by default.

To use a Cloudflare root certificate with Wget on Linux, install the certificate to your distribution's certificate store. Wget will use the Linux root certificate by default.

Alternatively, you can specify a certificate file directly:

wget --ca-certificate=[PATH_TO_CLOUDFLARE_CERT.pem] https://example.com

To make this permanent, add the following to your ~/.wgetrc file:

ca_certificate = [PATH_TO_CLOUDFLARE_CERT.pem]

IDEs and development environments

Integrated development environments often use their own JVMs or certificate stores.

Android Studio

Android Studio uses its own JVM and certificate store. To install a Cloudflare root certificate:

  1. Download a Cloudflare certificate.
  2. Find the java.home value for your Android Studio installation.
  3. In Android Studio, go to Help > About (or Android Studio > About Android Studio on macOS).
  4. Copy the JRE path shown in the dialog. For example:
      /Applications/Android Studio.app/Contents/jbr/Contents/Home
      ```

3. Add the Cloudflare certificate to Android Studio's JVM:

1. In a terminal, add the JRE path you copied as an environment variable.

```sh
   export JAVA_HOME="/path/to/jre"
   ```

2. Run `keytool` to install and trust the Cloudflare certificate.

```sh
   "$JAVA_HOME/bin/keytool" -import -file ~/Downloads/certificate.crt -alias CloudflareRootCA -keystore "$JAVA_HOME/lib/security/cacerts" -storepass changeit -trustcacerts -noprompt
   ```

3. Restart Android Studio.

1. In an administrator PowerShell terminal, add the JRE path you copied as an environment variable.

```powershell
   $env:JAVA_HOME = "C:\Program Files\Android\Android Studio\jbr"
   ```

2. Run `keytool` to install and trust the Cloudflare certificate.

```powershell
   & "$env:JAVA_HOME\bin\keytool.exe" -import -file "$env:USERPROFILE\Downloads\certificate.crt" -alias CloudflareRootCA -keystore "$env:JAVA_HOME\lib\security\cacerts" -storepass changeit -trustcacerts -noprompt
   ```

3. Restart Android Studio.

For Gradle builds within Android Studio, you may also need to configure the Gradle JVM to trust the certificate by following the same steps for the Gradle JVM location.

#### JetBrains

To install a Cloudflare root certificate on JetBrains products, refer to the links below:

- [AppCode ↗︎](https://www.jetbrains.com/help/objc/settings-tools-server-certificates.html)
- [CLion ↗︎](https://www.jetbrains.com/help/clion/settings-tools-server-certificates.html)
- [DataGrip ↗︎](https://www.jetbrains.com/help/datagrip/settings-tools-server-certificates.html)
- [DataSpell ↗︎](https://www.jetbrains.com/help/dataspell/settings-tools-server-certificates.html)
- [GoLand ↗︎](https://www.jetbrains.com/help/go/settings-tools-server-certificates.html)
- [IntelliJ IDEA ↗︎](https://www.jetbrains.com/help/idea/settings-tools-server-certificates.html)
- [PhpStorm ↗︎](https://www.jetbrains.com/help/phpstorm/settings-tools-server-certificates.html)
- [PyCharm ↗︎](https://www.jetbrains.com/help/pycharm/settings-tools-server-certificates.html)
- [Rider ↗︎](https://www.jetbrains.com/help/rider/Settings_Tools_Server_Certificates.html)
- [WebStorm ↗︎](https://www.jetbrains.com/help/webstorm/settings-tools-server-certificates.html)

#### Eclipse

To install a Cloudflare root certificate on Eclipse IDE for Java Developers, you must add the certificate to the Java virtual machine (JVM) used by Eclipse.

1. [Download a Cloudflare certificate](#download-a-cloudflare-root-certificate).
2. Find the `java.home` value for your Eclipse installation.
   1. In Eclipse, go to **Eclipse** > **About Eclipse** (or **Help** > **About Eclipse IDE** on Windows and Linux)
   2. Select **Installation Details**, then go to **Configuration**.
   3. Search for `java.home`, then locate the value. For example:

```txt
   *** System properties:
   java.home=/Users/<username>/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.aarch64_17.0.8.v20230831-1047/jre
   ```

4. Copy the full path after `java.home=`.
3. Add the Cloudflare certificate to Eclipse's JVM:

1. In a terminal, add the `java.home` value you copied as an environment variable.

```sh
   export JAVA_HOME=$(echo /path/to/java.home)
   ```

2. Run `keytool` to install and trust the Cloudflare certificate.

```sh
   "$JAVA_HOME/bin/keytool" -import -file ~/Downloads/certificate.crt -alias CloudflareRootCA -keystore "$JAVA_HOME/lib/security/cacerts" -storepass changeit -trustcacerts -noprompt
   ```

3. Restart Eclipse.

1. In a terminal, add the `java.home` value you copied as an environment variable.

```powershell
   set JAVA_HOME="\path\to\java.home"
   ```

2. Run `keytool` to install and trust the Cloudflare certificate.

```powershell
   "%JAVA_HOME%\bin\keytool.exe" -import -file "%UserProfile%\Downloads\Cloudflare_CA.crt" -alias CloudflareRootCA -keystore "%JAVA_HOME%\lib\security\cacerts" -storepass changeit -trustcacerts -noprompt
   ```

3. Restart Eclipse.

For more information on adding certificates to Eclipse with `keytool`, refer to [IBM's documentation ↗︎](https://www.ibm.com/docs/en/ram/7.5.4?topic=client-adding-server-public-certificate-eclipse).

### Cloud and infrastructure tools

Cloud service providers and infrastructure tools often require certificate configuration for API access and resource management.

#### Google Cloud

##### Google Cloud SDK

The commands below will set the Google Cloud SDK to use a Cloudflare certificate. For more information on configuring the Google Cloud SDK, refer to the [Google Cloud documentation ↗︎](https://cloud.google.com/sdk/docs/proxy-settings).

1. Get curl's `cacert` bundle.

```sh
   curl --remote-name https://curl.se/ca/cacert.pem
   ```

2. [Download a Cloudflare certificate](#download-a-cloudflare-root-certificate) in `.pem` format.
3. Combine the certs into a single `.pem` file.

```sh
   cat cacert.pem certificate.pem > ~/ca.pem
   ```

4. Configure Google Cloud to use the combined `.pem`.

```sh
   gcloud config set core/custom_ca_certs_file ~/ca.pem
   ```

Note

The file at `~/ca.pem` needs to remain in place in order for the `gcloud` utility to leverage it. If the file is moved, then you must re-run step 3 to point `gcloud` to the file's new location.

##### Kaniko

If you use Kaniko with Google Cloud SDK, you must install a Cloudflare certificate in the [Kaniko CA store ↗︎](https://docs.gitlab.com/ee/ci/docker/using_kaniko.html#using-a-registry-with-a-custom-certificate). For more information, refer to the [`gcloud` documentation ↗︎](https://cloud.google.com/sdk/gcloud/reference/builds/submit).

##### Google Apps Manager (GAM)

Google Apps Manager (GAM) uses its own certificate store. To add a Cloudflare certificate to GAM, refer to the [GAM documentation ↗︎](https://github.com/GAM-team/GAM/wiki/#using-gam-with-ssl--tls-mitm-inspection).

#### AWS CLI

##### Global config

To persistently set the location of the certificate:

1. [Download a Cloudflare certificate](#download-a-cloudflare-root-certificate) in `.pem` format.
2. Locate and open your [AWS configuration file ↗︎](https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-files.html#cli-configure-files-where).
3. Configure the [`ca_bundle` setting ↗︎](https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-files.html#cli-configure-files-settings) with the location of your certificate. For example:

*.aws/configdiff*

```diff
   [default]
   region = us-west-1

+ca_bundle = /path/to/certificate.pem
   ```

4. Restart your terminal.

##### Environment variable

To set the location of the certificate for use as an environment variable:

1. [Download a Cloudflare certificate](#download-a-cloudflare-root-certificate) in `.pem` format.
2. In a terminal, set the [`AWS_CA_BUNDLE` environment variable ↗︎](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html) to the location of your certificate depending on your operating system.
3. Restart your terminal.

#### Azure CLI

##### Global config

To persistently set the location of the certificate:

1. [Download a Cloudflare certificate](#download-a-cloudflare-root-certificate) in `.pem` format.
2. Set the `REQUESTS_CA_BUNDLE` environment variable to point to your certificate depending on your operating system.

Add the following to your shell's configuration file (such as `~/.zshrc` or `~/.bash_profile`):

```sh
export REQUESTS_CA_BUNDLE="$HOME/Downloads/certificate.pem"

In PowerShell:

[System.Environment]::SetEnvironmentVariable('REQUESTS_CA_BUNDLE', "$HOME\Downloads\certificate.pem", 'User')
  1. Restart your terminal.
Per-command

To set the location of the certificate for a single command:

  1. Download a Cloudflare certificate in .pem format.
  2. Set the REQUESTS_CA_BUNDLE environment variable when running the command:
   REQUESTS_CA_BUNDLE=/path/to/certificate.pem az <command>
   ```

For more information, refer to the [Azure CLI documentation ↗︎](https://learn.microsoft.com/cli/azure/use-cli-effectively#work-behind-a-proxy).

#### Boto3

Boto3, the AWS SDK for Python, can be configured to use a Cloudflare certificate in several ways.

##### Environment variable

To set the location of the certificate using an environment variable:

1. [Download a Cloudflare certificate](#download-a-cloudflare-root-certificate) in `.pem` format.
2. Set the `AWS_CA_BUNDLE` environment variable depending on your operating system.

Add the following to your shell's configuration file (such as `~/.zshrc` or `~/.bash_profile`):

```sh
export AWS_CA_BUNDLE="$HOME/Downloads/certificate.pem"

In PowerShell:

[System.Environment]::SetEnvironmentVariable('AWS_CA_BUNDLE', "$HOME\Downloads\certificate.pem", 'User')
  1. Restart your terminal.
AWS config file

To persistently set the location of the certificate in your AWS configuration:

  1. Download a Cloudflare certificate in .pem format.
  2. Locate and open your AWS configuration file ↗︎.
  3. Configure the ca_bundle setting ↗︎ with the location of your certificate. For example:

.aws/configdiff

   [default]
   region = us-west-1

+ca_bundle = /path/to/certificate.pem
   ```

##### In code

To specify the certificate directly in your Python code:

1. [Download a Cloudflare certificate](#download-a-cloudflare-root-certificate) in `.pem` format.
2. Pass the certificate path when creating a Boto3 client or resource:

```python
   import boto3

client = boto3.client(
       's3',
       verify='/path/to/certificate.pem'
   )
   ```

For more information, refer to the [Boto3 documentation ↗︎](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html).

### Enterprise applications

Enterprise desktop applications and specialized tools may require custom certificate configuration.

#### Google Drive

To trust a Cloudflare root certificate in the Google Drive desktop application, follow the procedure for your operating system. These steps require you to [download a `.pem` certificate](#download-a-cloudflare-root-certificate).

1. In a terminal, copy the contents of the Google Drive certificate file to a new certificate file in a permanent location, such as your Documents folder. For example:

```sh
   cat /Applications/"Google Drive.app"/Contents/Resources/roots.pem > ~/Documents/gdrivecerts.pem
   ```

2. Append the contents of the downloaded certificate to the end of the new file. For example:

```sh
   cat ~/Downloads/certificate.pem >> ~/Documents/gdrivecerts.pem
   ```

3. Apply the newly created root certificate to your Google Drive application. For example:

```sh
   sudo defaults write /Library/Preferences/com.google.drivefs.settings TrustedRootCertsFile "/Users/$(whoami)/Documents/gdrivecerts.pem"
   ```

You can verify the update with the following command.

```sh
defaults read /Library/Preferences/com.google.drivefs.settings
  1. In an administrator PowerShell terminal, copy the contents of the Google Drive certificate file to a new certificate file in a permanent location, such as your Documents folder. For example:
   Get-Content "C:\Program Files\Google\Drive File Stream\roots.pem" | Set-Content "$HOME\Documents\gdrivecerts.pem"
   ```

2. Append the contents of the downloaded certificate to the end of the new file. For example:

```powershell
   Get-Content "$HOME\Downloads\certificate.pem" | Add-Content "$HOME\Documents\gdrivecerts.pem"
   ```

3. Apply the newly created root certificate to your Google Drive application. For example:

```powershell
   Set-ItemProperty -Path "HKLM:\SOFTWARE\Google\DriveFS" -Name "TrustedRootCertsFile" -Value "$HOME\Documents\gdrivecerts.pem"
   ```

You can verify the update with the following command.

```powershell
Get-ItemProperty -Path "HKLM:\SOFTWARE\Google\DriveFS" | Select-Object TrustedRootCertsFile

For more information, refer to the Google documentation ↗︎ for the TrustedRootCertsFile setting.

Minikube

To trust a Cloudflare root certificate in Minikube, refer to x509: certificate signed by unknown authority ↗︎.

Was this helpful?

YesNo

On this page

Install certificate manually·续2 - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cloudflare-one/team-and-resources/devices/user-side-certificates/manual-deployment/#page","headline":"Install certificate manually","description":"Manually add a Cloudflare certificate to mobile devices and individual applications.","url":"https://developers.cloudflare.com/cloudflare-one/team-and-resources/devices/user-side-certificates/manual-deployment/","inLanguage":"en","image":"https://developers.cloudflare.com/cloudflare-one/team-and-resources/devices/user-side-certificates/manual-deployment/og.png?v=b6e53927267d3f8d","dateModified":"2026-10-12","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["TLS"]}


description: Configure the Cloudflare One Client to use a custom root certificate instead of the Cloudflare certificate. title: Deploy custom certificate image: https://developers.cloudflare.com/cloudflare-one/team-and-resources/devices/user-side-certificates/custom-certificate/og.png?v=13ffcb4b6efa47c3


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cloudflare-one/llms.txt
Use this file to discover all available pages before exploring further.