Skip to content

Commit dae3403

Browse files
committed
Update Windows procedure
1 parent b8f6196 commit dae3403

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -695,26 +695,28 @@ defaults read /Library/Preferences/com.google.drivefs.settings
695695

696696
<TabItem label="Windows" icon="seti:windows">
697697

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

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

702-
3. Append the contents of `cloudflare.pem` to the end of `roots.pem`.
704+
2. Append the contents of the downloaded certificate to the end of the new file. For example:
703705

704706
```powershell
705-
cat ~\Downloads\certificate.pem >> path\to\roots.pem
707+
Get-Content "$HOME\Downloads\certificate.pem" | Add-Content "$HOME\Documents\gdrivecerts.pem"
706708
```
707709

708-
4. Update the Google Drive registry key.
710+
3. Apply the newly created root certificate to your Google Drive application. For example:
709711

710-
```powershell
711-
reg ADD "HKEY_LOCAL_MACHINE\Software\Google\DriveFS" /v TrustedRootCertsFile /t REG_SZ /d "path\to\roots.pem"
712+
```sh
713+
Set-ItemProperty -Path "HKLM:\SOFTWARE\Google\DriveFS" -Name "TrustedRootCertsFile" -Value "$HOME\Documents\gdrivecerts.pem"
712714
```
713715

714716
You can verify the update with the following command.
715717

716-
```powershell
717-
reg QUERY "HKEY_LOCAL_MACHINE\Software\Google\DriveFS" /v TrustedRootCertsFile"
718+
```sh
719+
Get-ItemProperty -Path "HKLM:\SOFTWARE\Google\DriveFS" | Select-Object TrustedRootCertsFile
718720
```
719721

720722
</TabItem>

0 commit comments

Comments
 (0)