Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 403f121

Browse files
danbarrjhrozek
authored andcommitted
Update cert install instructions
Use user scope instead of system scope for cert trust
1 parent 576c97b commit 403f121

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cert_gen.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,18 @@ def generate_certificates(cert_dir="certs"):
150150
print("\nTo trust these certificates:")
151151
print("\nOn macOS:")
152152
print(
153-
"sudo security add-trusted-cert -d -r trustRoot "
154-
"-k /Library/Keychains/System.keychain certs/server.crt"
153+
"security add-trusted-cert -r trustRoot "
154+
"-k ~/Library/Keychains/login.keychain certs/server.crt"
155155
)
156-
print("\nOn Windows (PowerShell as Admin):")
156+
print("\nOn Windows (PowerShell):")
157157
print(
158158
'Import-Certificate -FilePath "certs\\server.crt" '
159-
"-CertStoreLocation Cert:\\LocalMachine\\Root"
159+
"-CertStoreLocation Cert:\\CurrentUser\\Root"
160160
)
161161
print("\nOn Linux:")
162162
print("sudo cp certs/server.crt /usr/local/share/ca-certificates/proxy-pilot.crt")
163163
print("sudo update-ca-certificates")
164-
print("\nFor VSCode, add to settings.json:")
164+
print("\nFor VS Code, add to settings.json:")
165165
print(
166166
"""{
167167
"http.proxy": "https://localhost:8989",

0 commit comments

Comments
 (0)