Skip to content

Commit 2f4522a

Browse files
authored
[ZT] Update GDrive cert procedure (#19374)
1 parent e52cc45 commit 2f4522a

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

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

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -715,20 +715,22 @@ To trust a Cloudflare root certificate in the Google Drive desktop application,
715715
<Tabs>
716716
<TabItem label="macOS" icon="apple">
717717

718-
1. In the Finder menu bar, go to **Go** > **Go to Folder**. Enter `/Applications/Google Drive.app/Contents/Resources`.
718+
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:
719719

720-
2. Find `roots.pem` and copy it to a permanent location, such as your Documents folder.
720+
```sh
721+
cat /Applications/"Google Drive.app"/Contents/Resources/roots.pem > ~/Documents/gdrivecerts.pem
722+
```
721723

722-
3. Append the contents of `cloudflare.pem` to the end of `roots.pem`.
724+
2. Append the contents of the downloaded certificate to the end of the new file. For example:
723725

724726
```sh
725-
cat ~/Downloads/certificate.pem >> path/to/roots.pem
727+
cat ~/Downloads/certificate.pem >> ~/Documents/gdrivecerts.pem
726728
```
727729

728-
4. Apply the newly created root certificate to your Google Drive application.
730+
3. Apply the newly created root certificate to your Google Drive application. For example:
729731

730732
```sh
731-
sudo defaults write /Library/Preferences/com.google.drivefs.settings TrustedRootCertsFile -string "path/to/roots.pem"
733+
sudo defaults write /Library/Preferences/com.google.drivefs.settings TrustedRootCertsFile "/Users/$(whoami)/Documents/gdrivecerts.pem"
732734
```
733735

734736
You can verify the update with the following command.
@@ -741,26 +743,28 @@ defaults read /Library/Preferences/com.google.drivefs.settings
741743

742744
<TabItem label="Windows" icon="seti:windows">
743745

744-
1. In File Explorer, go to `\Program Files\Google\Drive File Stream\<version>\config\`.
746+
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:
745747

746-
2. Find `roots.pem` and copy it to a permanent location, such as your Documents folder.
748+
```powershell
749+
Get-Content "C:\Program Files\Google\Drive File Stream\roots.pem" | Set-Content "$HOME\Documents\gdrivecerts.pem"
750+
```
747751

748-
3. Append the contents of `cloudflare.pem` to the end of `roots.pem`.
752+
2. Append the contents of the downloaded certificate to the end of the new file. For example:
749753

750754
```powershell
751-
cat ~\Downloads\certificate.pem >> path\to\roots.pem
755+
Get-Content "$HOME\Downloads\certificate.pem" | Add-Content "$HOME\Documents\gdrivecerts.pem"
752756
```
753757

754-
4. Update the Google Drive registry key.
758+
3. Apply the newly created root certificate to your Google Drive application. For example:
755759

756760
```powershell
757-
reg ADD "HKEY_LOCAL_MACHINE\Software\Google\DriveFS" /v TrustedRootCertsFile /t REG_SZ /d "path\to\roots.pem"
761+
Set-ItemProperty -Path "HKLM:\SOFTWARE\Google\DriveFS" -Name "TrustedRootCertsFile" -Value "$HOME\Documents\gdrivecerts.pem"
758762
```
759763

760764
You can verify the update with the following command.
761765

762766
```powershell
763-
reg QUERY "HKEY_LOCAL_MACHINE\Software\Google\DriveFS" /v TrustedRootCertsFile"
767+
Get-ItemProperty -Path "HKLM:\SOFTWARE\Google\DriveFS" | Select-Object TrustedRootCertsFile
764768
```
765769

766770
</TabItem>

0 commit comments

Comments
 (0)