Install certificate manually
Last updated Oct 12, 2026 Note
This procedure is only required to enable specific Cloudflare Zero Trust features, and should only be done at the direction of your IT department. This procedure is not required to enable the Cloudflare One Client for consumers.
If your device does not support certificate installation via the Cloudflare One Client, you can manually install a Cloudflare certificate. You must add the certificate to both the system keychain and to individual application stores. These steps must be performed on each new device that is to be subject to HTTP filtering.
Zero Trust will only inspect traffic using installed certificates set to Available and In-Use.
To install a certificate manually, you must:
- Download a Cloudflare certificate and verify it.
- Install the certificate in your operating system's certificate store.
- If a target application does not accept certificates from the operating system, you must install the certificate in the application's certificate store.
1. Download a Cloudflare root certificate
Download limitation
You can only download Cloudflare-generated certificates from the Cloudflare One dashboard or with the Cloudflare One Client.
First, generate and download a Cloudflare certificate. The certificate is available in both .pem and .crt file format. Certain applications require the certificate to be in a specific file type, so ensure you download the most appropriate file for your use case.
- In the Cloudflare dashboard ↗︎, go to Zero Trust > Traffic policies > Traffic settings.
- Select Certificates.
- Select the certificate you want to download.
- Select More actions.
- Depending on which format you want, choose Download .pem and/or Download .crt.
Alternatively, you can download and install a certificate using the Cloudflare One Client. The Cloudflare One Client will add the certificates to the device's system certificate store in installed_certs/<certificate_id>.pem.
2. Verify the downloaded certificate
To verify your download, use a terminal to check that the downloaded certificate's hash matches the thumbprint listed under Certificate thumbprint. For example:
SHA1
SHA1 .crt examplesh
openssl x509 -noout -fingerprint -sha1 -inform der -in <certificate.crt>
SHA1 Fingerprint=BB:2D:B6:3D:6B:DE:DA:06:4E:CA:CB:40:F6:F2:61:40:B7:10:F0:6C
SHA1 .pem examplesh
openssl x509 -noout -fingerprint -sha1 -inform pem -in <certificate.pem>
SHA1 Fingerprint=BB:2D:B6:3D:6B:DE:DA:06:4E:CA:CB:40:F6:F2:61:40:B7:10:F0:6C
SHA256
SHA256 .crt examplesh
openssl x509 -noout -fingerprint -sha256 -inform der -in <certificate.crt>
sha256 Fingerprint=F5:E1:56:C4:89:78:77:AD:79:3A:1E:83:FA:77:83:F1:9C:B0:C6:1B:58:2C:2F:50:11:B3:37:72:7C:62:3D:EF
SHA256 .pem examplesh
openssl x509 -noout -fingerprint -sha256 -inform pem -in <certificate.pem>
sha256 Fingerprint=F5:E1:56:C4:89:78:77:AD:79:3A:1E:83:FA:77:83:F1:9C:B0:C6:1B:58:2C:2F:50:11:B3:37:72:7C:62:3D:EF
3. (Optional) Convert the certificate
Some applications require a certificate formatted in the .cer file type. You can convert your downloaded certificate using OpenSSL ↗︎:
- Install OpenSSL ↗︎.
- Download a Cloudflare certificate in
.pemformat. - In a terminal, convert the certificate to DER format with the
.cerfile type:
openssl x509 -inform PEM -in ~/Downloads/certificate.pem -outform DER -out ~/Downloads/certificate.cer
```
1. [Install OpenSSL for Windows ↗︎](https://slproweb.com/products/Win32OpenSSL.html).
2. [Download a Cloudflare certificate](#download-a-cloudflare-root-certificate) in `.pem` format.
3. In a PowerShell terminal, convert the certificate to DER format with the `.cer` file type:
```powershell
openssl x509 -inform PEM -in "$HOME\Downloads\certificate.pem" -outform DER -out "$HOME\Downloads\certificate.cer"
```
## 4. Add the certificate to operating systems
If you are deploying the Cloudflare certificate to desktop devices, use the [Install certificate using the Cloudflare One Client](https://developers.cloudflare.com/cloudflare-one/team-and-resources/devices/user-side-certificates/automated-deployment/) method.
Mobile devices require manual installations detailed in the instructions below.
### macOS
In macOS, you can choose the keychain in which you want to install the certificate. Each keychain impacts which users will be affected by trusting the root certificate.
| Keychain | Access scope |
| --- | --- |
| login | The logged in user |
| Local Items | Users with access to cached iCloud passwords |
| System | All users on the system |
To install a Cloudflare certificate in macOS, you can use either the Keychain Access application or a terminal. Both methods require you to [download a certificate](#download-a-cloudflare-root-certificate) in `.crt` format.
1. Download a Cloudflare certificate.
2. Open the `.crt` file in Keychain Access. If prompted, enter your local password.
3. In **Keychain**, choose the access option that suits your needs and select **Add**.
4. In the list of certificates, locate the newly installed certificate. Keychain Access will mark this certificate as not trusted. Right-click the certificate and select **Get Info**.
5. Select **Trust**. Under **When using this certificate**, select *Always Trust*.
The root certificate is now installed and ready to be used.
1. Download a Cloudflare certificate.
2. Open Terminal.
3. Add the certificate to your keychain:
```sh
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain <path-to-certificate.crt>
This keychain will allow all users on the system access to the certificate. If you want to install the certificate to a different keychain, replace System.keychain with the name of that keychain.
- Update the OpenSSL CA Store to include the Cloudflare certificate:
echo | sudo tee -a /etc/ssl/cert.pem < certificate.pem
The root certificate is now installed and ready to be used.
Change certificate access scope
If you want to change user access to the Cloudflare certificate, you can open Keychain Access and move the certificate to a different keychain on the left sidebar.
Windows
Windows offers two locations to install the certificate, each impacting which users will be affected by trusting the root certificate.
| Store location | Access scope |
|---|---|
| Current User Store | The logged in user |
| Local Machine Store | All users on the system |
- Download a Cloudflare certificate.
- Right-click the certificate file.
- Select Open. If a security warning appears, choose Open to proceed.
- The Certificate window will appear. Select Install Certificate.
- Now choose a Store Location. If a security warning appears, choose Yes to proceed.
- On the next screen, select Browse.
- In the list, choose the Trusted Root Certification Authorities store.
- Select OK, then select Finish.
The root certificate is now installed and ready to be used.
Caution
If your certificate is installed in the Local Machine Store, the device posture check looking for a certificate will fail. Install the certificate in the Current User Store to ensure a successful posture device check.
Linux
The location where the root certificate should be installed is different depending on your Linux distribution. Follow the specific instructions for your distribution.
The following procedure applies to Debian-based systems, such as Debian, Ubuntu, and Kali Linux.
- Download a Cloudflare certificate in
.pemformat. - Install the
ca-certificatespackage.
sh
sudo apt-get install ca-certificates
- Copy the certificate to the system, changing the file extension to
.crt.
sh
sudo cp certificate.pem /usr/share/ca-certificates/certificate.crt
- Import the certificate.
sh
sudo dpkg-reconfigure ca-certificates
The following procedure applies to Red Hat-based systems, such as CentOS and Red Hat Enterprise Linux (RHEL).
- Download a Cloudflare certificate in both
.crtand.pemformat. - Install the
ca-certificatespackage.
sh
sudo dnf install ca-certificates
- Copy both certificates to the trust store.
sh
sudo cp certificate.crt certificate.pem /etc/pki/ca-trust/source/anchors
- Import the certificate.
sh
sudo update-ca-trust
NixOS does not use the system certificate store for self updating and instead relies on the certificates found in ~/.nix-profile/etc/ssl/certs or provided by NIX_SSL_CERT_FILE at runtime.
iOS
- In Safari, download a Cloudflare certificate in
.pemformat. - Open Files and go to Recents.
- Find and open the downloaded certificate file. A message will appear confirming the profile was downloaded. Select Close.
- Open Settings. Select the Profile Downloaded section beneath your Apple Account info. Alternatively, go to General > VPN & Device Management and select the Gateway CA - Cloudflare Managed G1 profile.
- Select Install. If the iOS device is passcode-protected, you will be prompted to enter the passcode.
- A certificate warning will appear. Select Install. If a second prompt appears, select Install again.
- The Profile Installed screen will appear. Select Done. The certificate is now installed. However, before it can be used, it must be trusted by the device.
- In Settings, go to General > About > Certificate Trust Settings. The installed root certificates will be displayed under Enable full trust for root certificates.
- Turn on the Cloudflare certificate.
- A security warning message will appear. Choose Continue.
The root certificate is now installed and ready to be used.
Android
- Download a Cloudflare certificate.
- In Settings, go to Security > Advanced > Encryption & credentials > Install a certificate.
- Select CA certificate.
- Select Install anyway.
- Verify your identity.
- Choose the certificate file you want to install.
The root certificate is now installed and ready to be used.
ChromeOS
ChromeOS devices use different methods to store and deploy root certificates. Certificates may fall under the VPN and apps or CA certificate settings. Follow the procedure that corresponds with your device.
- Download a Cloudflare certificate in
.crtformat. - Go to Settings > Apps > Google Play Store.
- Select Manage Android preferences.
-
Go to Security & location > Credentials > Install from SD card.
-
In the file open dialog, choose the
certificate.crtfile you downloaded. Select Open. - Enter a name to identify the certificate. Ensure Credential use is set to VPN and apps.
-
Select OK.
-
Download a Cloudflare certificate in
.crtformat. - Go to Settings > Apps > Google Play Store.
- Select Manage Android preferences.
-
Go to Security & location > Credentials > Install a certificate > CA certificate.
-
When prompted with a privacy warning, select Install anyway.
- In the file open dialog, choose the
certificate.crtfile you downloaded. Select Open. - To verify the certificate is installed and trusted, go to Settings > Apps > Google Play Store > Manage Android Preferences > Security > Credentials > Trusted credentials > User.
After adding the Cloudflare certificate to ChromeOS, you may also have to install the certificate in your browser.
5. Add the certificate to applications
Some applications do not use the system certificate store and therefore require the certificate to be added to the application directly. For certain applications like the ones below, you will need to follow the steps in this section and add the Cloudflare certificate to the application for TLS decryption to function properly.
If you do not update the application to trust the Cloudflare certificate, the application will refuse to connect and you will receive an untrusted certificate error.
All of the applications below first require downloading a Cloudflare certificate with the instructions above. On macOS, the default path to the system keychain database file is /Library/Keychains/System.keychain. On Windows, the default path is \Cert:\CurrentUser\Root.
Note
Some applications require the use of a publicly trusted certificate — they do not trust the system certificate, nor do they have a configurable private store. For these applications to function, you must add a Do Not Inspect policy for the domains or IPs that the application relies on.
Caution
Even if you deployed WARP through the Install certificate using the Cloudflare One Client method, you may still need to add the Cloudflare certificate to certain applications. The Install certificate using the Cloudflare One Client method only installs the Cloudflare certificate to the operating system certificate store.
Browsers
Browsers may use their own certificate stores or rely on the operating system certificate store.
Chrome
Versions of Chrome before Chrome 113 use the operating system root store ↗︎ on macOS and Windows. Chrome 113 and newer on macOS and Windows -- and all versions on Linux and ChromeOS -- use the Chrome internal trust store ↗︎.
To install a Cloudflare certificate to Chrome manually:
- Download a Cloudflare certificate in
.pemformat. - In Chrome, go to Settings > Privacy and security > Security.
- Select Manage certificates.
- Go to Authorities. Select Import.
- In the file open dialog, choose the
certificate.pemfile you downloaded. - In the dialog box, turn on Trust this certificate for identifying websites, Trust this certificate for identifying email users, and Trust this certificate for identifying software makers. Select OK.
- To verify the certificate was installed and trusted, locate it in Authorities.
For information on installing a Cloudflare certificate for organizations, refer to Google's Chrome Enterprise and Education documentation ↗︎.
Firefox
To install a Cloudflare certificate to Firefox manually:
- Download a Cloudflare certificate in
.pemformat. - In Firefox, go to Settings > Privacy & Security.
- In Security, select Certificates > View Certificates.
- In Authorities, select Import.
- In the file open dialog, choose the
certificate.pemfile you downloaded. - In the dialog box, turn on Trust this CA to identify websites and Trust this CA to identify email users. Select OK.
- To verify the certificate was installed and trusted, locate it in the table under Cloudflare.
For information on installing a Cloudflare certificate for organizations, refer to this Mozilla support article ↗︎.
