Skip to content

Commit 4ca2b80

Browse files
authored
[ZT] New cert procedure for applications (#17636)
1 parent 1d99a70 commit 4ca2b80

File tree

1 file changed

+56
-87
lines changed

1 file changed

+56
-87
lines changed

src/content/docs/cloudflare-one/connections/connect-devices/warp/user-side-certificates/install-cloudflare-cert.mdx

Lines changed: 56 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If your device does not support [certificate installation via WARP](/cloudflare-
2020

2121
## Download the Cloudflare root certificate
2222

23-
First, download the Cloudflare certificate. The certificate is available both as a `.pem` and as a `.crt` file. Certain applications require the certificate to be in a specific file type, so ensure you download the most appropriate file for your use case.
23+
First, [generate](/cloudflare-one/connections/connect-devices/warp/user-side-certificates/#generate-a-cloudflare-root-certificate) and download the 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.
2424

2525
1. In [Zero Trust](https://one.dash.cloudflare.com/), go to **Settings** > **Resources**.
2626
2. In **Certificates**, select **Manage**.
@@ -81,7 +81,9 @@ In macOS, you can choose the keychain in which you want to install the certifica
8181

8282
To install the Cloudflare certificate in macOS, you can use either the Keychain Access application or a terminal. Both methods require you to [download the Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.crt` format.
8383

84-
<Tabs> <TabItem label="keychain access">
84+
<Tabs>
85+
86+
<TabItem label="Keychain Access">
8587

8688
1. Download the Cloudflare certificate.
8789

@@ -95,7 +97,9 @@ To install the Cloudflare certificate in macOS, you can use either the Keychain
9597

9698
The root certificate is now installed and ready to be used.
9799

98-
</TabItem> <TabItem label="terminal">
100+
</TabItem>
101+
102+
<TabItem label="Terminal">
99103

100104
1. Download the Cloudflare certificate.
101105
2. Open Terminal.
@@ -115,7 +119,9 @@ echo | sudo tee -a /etc/ssl/cert.pem < Cloudflare_CA.pem
115119

116120
The root certificate is now installed and ready to be used.
117121

118-
</TabItem> </Tabs>
122+
</TabItem>
123+
124+
</Tabs>
119125

120126
:::note[Change certificate access scope]
121127
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.
@@ -156,47 +162,47 @@ The location where the root certificate should be installed is different dependi
156162

157163
The following procedure applies to Debian-based systems, such as Debian, Ubuntu, and Kali Linux.
158164

159-
1. Download the [`.pem` certificate](/cloudflare-one/static/Cloudflare_CA.pem).
165+
1. [Download the Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.pem` format.
160166
2. Install the `ca-certificates` package.
161167

162-
```sh
163-
sudo apt-get install ca-certificates
164-
```
168+
```sh
169+
sudo apt-get install ca-certificates
170+
```
165171

166172
3. Copy the certificate to the system, changing the file extension to `.crt`.
167173

168-
```sh
169-
sudo cp Cloudflare_CA.pem /usr/share/ca-certificates/Cloudflare_CA.crt
170-
```
174+
```sh
175+
sudo cp Cloudflare_CA.pem /usr/share/ca-certificates/Cloudflare_CA.crt
176+
```
171177

172178
4. Import the certificate.
173179

174-
```sh
175-
sudo dpkg-reconfigure ca-certificates
176-
```
180+
```sh
181+
sudo dpkg-reconfigure ca-certificates
182+
```
177183

178184
#### Red Hat-based distributions
179185

180186
The following procedure applies to Red Hat-based systems, such as CentOS and Red Hat Enterprise Linux (RHEL).
181187

182-
1. Download both the [`.crt` certificate](/cloudflare-one/static/Cloudflare_CA.crt) and the [`.pem` certificate](/cloudflare-one/static/Cloudflare_CA.pem).
188+
1. [Download the Cloudflare certificate](#download-the-cloudflare-root-certificate) in both `.crt` and `.pem` format.
183189
2. Install the `ca-certificates` package.
184190

185-
```sh
186-
sudo dnf install ca-certificates
187-
```
191+
```sh
192+
sudo dnf install ca-certificates
193+
```
188194

189195
3. Copy both certificates to the trust store.
190196

191-
```sh
192-
sudo cp Cloudflare_CA.crt Cloudflare_CA.pem /etc/pki/ca-trust/source/anchors
193-
```
197+
```sh
198+
sudo cp Cloudflare_CA.crt Cloudflare_CA.pem /etc/pki/ca-trust/source/anchors
199+
```
194200

195201
4. Import the certificate.
196202

197-
```sh
198-
sudo update-ca-trust
199-
```
203+
```sh
204+
sudo update-ca-trust
205+
```
200206

201207
#### NixOS
202208

@@ -206,44 +212,25 @@ NixOS does not use the system certificate store for self updating and instead re
206212

207213
iOS only allows the Safari browser to open and install certificates.
208214

209-
1. Open Safari and [download the Cloudflare certificate](#download-the-cloudflare-root-certificate). The device will show a message: _This website is trying to download a configuration profile. Do you want to allow this?_
210-
215+
1. Open Safari and [download the Cloudflare certificate](#download-the-cloudflare-root-certificate). The device will display a confirmation dialog.
211216
2. Select **Allow**.
212-
213-
3. Go to **Settings**, where a new **Profile Downloaded** section will appear directly beneath your iCloud user account info.
214-
215-
:::note
216-
217-
Alternatively, you can go to **Settings** > **General** > **VPN & Device Management** and select the **Cloudflare for Teams ECC Certificate Authority** profile.
218-
219-
:::
220-
217+
3. Go to **Settings**, where a new **Profile Downloaded** section will appear directly beneath your iCloud user account info. Alternatively, you can go to **Settings** > **General** > **VPN & Device Management** and select the **Cloudflare for Teams ECC Certificate Authority** profile.
221218
4. Select **Install**. If the iOS device is passcode-protected, you will be prompted to enter the passcode.
222-
223-
5. Next, a certificate warning will appear. Select **Install**. If a second prompt appears, select **Install** again.
224-
225-
6. Next, 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.
226-
227-
7. Go to **Settings** > **General** > **About** > **Certificate Trust Settings**. The installed root certificates will be displayed under Enable full trust for root certificates.
228-
229-
8. Enable the Cloudflare certificate.
230-
219+
5. A certificate warning will appear. Select **Install**. If a second prompt appears, select **Install** again.
220+
6. 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.
221+
7. In **Settings**, go to **General** > **About** > **Certificate Trust Settings**. The installed root certificates will be displayed under Enable full trust for root certificates.
222+
8. Turn on the Cloudflare certificate.
231223
9. A security warning message will appear. Choose **Continue**.
232224

233225
The root certificate is now installed and ready to be used.
234226

235227
### Android
236228

237229
1. [Download the Cloudflare certificate](#download-the-cloudflare-root-certificate).
238-
239-
2. Go to **Settings** > **Security** > **Advanced** > **Encryption & credentials** > **Install a certificate**.
240-
230+
2. In **Settings**, go to **Security** > **Advanced** > **Encryption & credentials** > **Install a certificate**.
241231
3. Select **CA certificate**.
242-
243232
4. Select **Install anyway**.
244-
245233
5. Verify your identity.
246-
247234
6. Choose the certificate file you want to install.
248235

249236
The root certificate is now installed and ready to be used.
@@ -252,30 +239,28 @@ The root certificate is now installed and ready to be used.
252239

253240
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.
254241

255-
<Tabs> <TabItem label="vpn and apps">
242+
<Tabs> <TabItem label="VPN and apps">
256243

257244
<Render
258245
file="chromeos-cert-settings"
259246
params={{ one: "Install from SD card" }}
260247
/>
261248

262-
5. In the file open dialog, choose the `Cloudflare_CA.crt` file you downloaded and select **Open**.
263-
264-
6. Enter a name to identify the certificate. Ensure **Credential use** is set to _VPN and apps_. Select **OK**.
249+
5. In the file open dialog, choose the `Cloudflare_CA.crt` file you downloaded. Select **Open**.
250+
6. Enter a name to identify the certificate. Ensure **Credential use** is set to _VPN and apps_.
251+
7. Select **OK**.
265252

266253
</TabItem>
267254

268-
<TabItem label="ca certificate">
255+
<TabItem label="CA certificate">
269256

270257
<Render
271258
file="chromeos-cert-settings"
272259
params={{ one: "Install a certificate > CA certificate" }}
273260
/>
274261

275262
5. When prompted with a privacy warning, select **Install anyway**.
276-
277-
6. In the file open dialog, choose the `Cloudflare_CA.crt` file you downloaded and select **Open**.
278-
263+
6. In the file open dialog, choose the `Cloudflare_CA.crt` file you downloaded. Select **Open**.
279264
7. To verify the certificate is installed and trusted, go to **Settings** > **Apps** > **Google Play Store** > **Manage Android Preferences** > **Security** > **Credentials** > **Trusted credentials** > **User**.
280265

281266
</TabItem> </Tabs>
@@ -286,10 +271,9 @@ After adding the Cloudflare certificate to ChromeOS, you may also have to [insta
286271

287272
Some packages, development tools, and other applications provide options to trust root certificates that will allow for the traffic inspection features of Gateway to work without breaking the application.
288273

289-
All of the applications below first require downloading the Cloudflare certificate with the instructions above. On Mac, the default path is `/Library/Keychains/System.keychain Cloudflare_CA.crt`. On Windows, the default path is `\Cert:\CurrentUser\Root`.
274+
All of the applications below first require downloading the 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`.
290275

291276
:::note
292-
293277
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](/cloudflare-one/policies/gateway/http-policies/#do-not-inspect) for the domains or IPs that the application relies on.
294278
:::
295279

@@ -301,7 +285,7 @@ Versions of Chrome before Chrome 113 use the [operating system root store](https
301285

302286
To install the Cloudflare certificate to Chrome manually:
303287

304-
1. Download the [Cloudflare certificate](/cloudflare-one/static/Cloudflare_CA.pem) in `.pem` format.
288+
1. [Download the Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.pem` format.
305289
2. In Chrome, go to **Settings** > **Privacy and security** > **Security**.
306290
3. Select **Manage certificates**.
307291
4. Go to **Authorities**. Select **Import**.
@@ -315,7 +299,7 @@ For information on installing the Cloudflare certificate for organizations, refe
315299

316300
To install the Cloudflare certificate to Firefox manually:
317301

318-
1. Download the [Cloudflare certificate](/cloudflare-one/static/Cloudflare_CA.pem) in `.pem` format.
302+
1. [Download the Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.pem` format.
319303
2. In Firefox, go to **Settings** > **Privacy & Security**.
320304
3. In **Security**, select **Certificates** > **View Certificates**.
321305
4. In **Authorities**, select **Import**.
@@ -331,16 +315,10 @@ For information on installing the Cloudflare certificate for organizations, refe
331315

332316
The command to install the certificate with Python on Windows automatically includes `pip` and `certifi` (the default certificate bundle for certificate validation).
333317

334-
1. In a PowerShell terminal, download the Cloudflare root certificate:
335-
336-
```powershell
337-
curl.exe -o Cloudflare_CA.crt https://developers.cloudflare.com/cloudflare-one/static/Cloudflare_CA.crt
338-
```
339-
318+
1. [Download the Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.crt` format.
340319
2. Update the bundle to include the Cloudflare certificate:
341-
342320
```powershell
343-
gc .\Cloudflare_CA.crt | ac C:\Python37\Lib\site-packages\pip\_vendor\certifi\cacert.pem
321+
gc "$env:USERPROFILE\Downloads\Cloudflare_CA.crt" | ac C:\Python37\Lib\site-packages\pip\_vendor\certifi\cacert.pem
344322
```
345323

346324
#### Python on Mac and Linux
@@ -361,11 +339,7 @@ The command to install the certificate with Python on Windows automatically incl
361339
~/Library/Python/3.7/lib/python/site-packages/certifi/cert.pem
362340
```
363341

364-
3. Download the Cloudflare root certificate:
365-
366-
```sh
367-
wget https://developers.cloudflare.com/cloudflare-one/static/Cloudflare_CA.pem
368-
```
342+
3. [Download the Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.pem` format.
369343

370344
4. Append the Cloudflare certificate to this CA store by running:
371345

@@ -433,11 +407,11 @@ git config --global http.sslcainfo [PATH_TO_CLOUDFLARE_CERT]
433407

434408
### npm
435409

436-
The command below will set the `cafile` configuration to use the Cloudflare certificate. Make sure to use the certificate in the [`.pem`](/cloudflare-one/static/Cloudflare_CA.pem) file type.
437-
438-
```sh
439-
npm config set cafile [PATH_TO_CLOUDFLARE_CERT.pem]
440-
```
410+
1. [Download the Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.pem` format.
411+
2. Set the `cafile` configuration to use the Cloudflare certificate:
412+
```sh
413+
npm config set cafile [PATH_TO_CLOUDFLARE_CERT.pem]
414+
```
441415

442416
On some systems you may need to set the following in your path/export list:
443417

@@ -457,12 +431,7 @@ The commands below will set the Google Cloud SDK to use the Cloudflare certifica
457431
curl --remote-name https://curl.se/ca/cacert.pem
458432
```
459433

460-
2. Get the Cloudflare CA.
461-
462-
```sh
463-
curl --remote-name https://developers.cloudflare.com/cloudflare-one/static/Cloudflare_CA.pem
464-
```
465-
434+
2. [Download the Cloudflare certificate](#download-the-cloudflare-root-certificate) in `.pem` format.
466435
3. Combine the certs into a single `.pem` file.
467436

468437
```sh
@@ -594,7 +563,7 @@ To install the Cloudflare root certificate on Eclipse IDE for Java Developers, y
594563

595564
4. Copy the full path after `java.home=`.
596565

597-
3. Add the Cloudflare certificate to Eclipse's JVM.
566+
3. Add the Cloudflare certificate to Eclipse's JVM:
598567

599568
<Details header="macOS and Linux">
600569

0 commit comments

Comments
 (0)