Skip to content

Commit 055a1f7

Browse files
committed
Update Windows procedure to match
1 parent afdf92d commit 055a1f7

File tree

1 file changed

+10
-4
lines changed
  • src/content/docs/cloudflare-one/connections/connect-devices/warp/user-side-certificates

1 file changed

+10
-4
lines changed

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -641,19 +641,25 @@ To trust the Cloudflare root certificate in RubyGems, follow the procedure for y
641641
openssl x509 -in %UserProfile%\Downloads\certificate.pem -out %UserProfile%\Downloads\ruby-root-ca.crt
642642
```
643643

644-
3. Add your RubyGems directory as an environment variable.
644+
3. Create a RubyGems certificate directory in your home folder.
645645

646646
```powershell
647-
[Environment]::SetEnvironmentVariable("RUBY_DIR", (Split-Path (gem which rubygems)), "User")
647+
mkdir -Force "$env:USERPROFILE\.gem\ssl"
648648
```
649649

650650
4. Copy the Cloudflare certificate to your RubyGems certificate store.
651651

652652
```powershell
653-
copy %UserProfile%\Downloads\ruby-root-ca.crt %RUBY_DIR%\ssl_cert\rubygems.org
653+
Copy-Item "$env:USERPROFILE\Downloads\ruby-root-ca.crt" "$env:USERPROFILE\.gem\ssl\rubygems.org.pem"
654654
```
655655

656-
5. Restart RubyGems.
656+
5. Configure RubyGems to use the certificate.
657+
658+
```powershell
659+
gem sources --add-trusted-cert "$env:USERPROFILE\.gem\ssl\rubygems.org.pem"
660+
```
661+
662+
6. Restart RubyGems.
657663

658664
</Details>
659665

0 commit comments

Comments
 (0)