Skip to content

Commit d1e56ee

Browse files
authored
Update macOS cert steps (#11)
Keychain Access has some inconsistent behavior for some users, this should be more reliable.
1 parent 5b9dbdd commit d1e56ee

File tree

1 file changed

+27
-33
lines changed

1 file changed

+27
-33
lines changed

Diff for: src/components/Certificates.tsx

+27-33
Original file line numberDiff line numberDiff line change
@@ -89,53 +89,47 @@ export function Certificates() {
8989
const steps = {
9090
macos: {
9191
install: [
92-
"Double-click the downloaded certificate file",
93-
"Keychain Access will open automatically",
94-
'Add the certificate to the "login" keychain',
95-
"Double-click the imported certificate",
96-
'Expand the "Trust" section',
97-
'Set "When using this certificate" to "Custom Settings"',
98-
'Set "Secure Sockets Layer" to "Always Trust"',
99-
'Set "X.509 Basic Policy" to "Always Trust"',
100-
"Alternatively, you can run `security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain codegate.crt`",
92+
"Open the downloaded certificate file. Keychain Access launches and imports the cert automatically.",
93+
'Select the login keychain and search for "CodeGate" (it may not appear until you search).',
94+
'Double-click the "CodeGate CA" certificate.',
95+
'Expand the Trust section and set the "Secure Sockets Layer" and "X.509 Basic Policy" options to "Always Trust".',
96+
"Alternatively, run `security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain ~/Downloads/codegate.crt` from a terminal.",
10197
],
10298
remove: [
103-
"Open the Keychain Access app",
104-
"Select the login keychain",
105-
'Find the "CodeGate CA" certificate',
106-
'Right-click and select "Delete"',
107-
"Confirm the deletion when prompted",
108-
'Alternatively, you can run `security delete-certificate -c "CodeGate CA" -t ~/Library/Keychains/login.keychain`'
99+
"Launch the Keychain Access app.",
100+
'Select the login keychain and search for "CodeGate".',
101+
'Right-click the "CodeGate CA" certificate and Delete the certificate.',
102+
"Confirm the deletion when prompted.",
103+
'Alternatively, run `security delete-certificate -c "CodeGate CA" -t ~/Library/Keychains/login.keychain` from a terminal.'
109104
],
110105
},
111106
windows: {
112107
install: [
113-
"Double-click the downloaded certificate file",
114-
'Click "Install Certificate"',
115-
'Select "Current User" and click Next',
116-
'Choose "Place all certificates in the following store"',
117-
'Click "Browse" and select "Trusted Root Certification Authorities"',
118-
'Click "Next" and then "Finish"',
108+
"Double-click the downloaded certificate file.",
109+
'Click "Install Certificate".',
110+
'Select "Current User" and click Next.',
111+
'Choose "Place all certificates in the following store".',
112+
'Click Browse and select "Trusted Root Certification Authorities".',
113+
"Click Next and Finish.",
119114
],
120115
remove: [
121-
'Open "Run" (Win + R)',
122-
"Type `certmgr.msc` and press Enter",
123-
'Navigate to "Trusted Root Certification Authorities" → "Certificates"',
124-
'Find the "CodeGate CA" certificate',
125-
'Right-click and select "Delete"',
126-
"Confirm the deletion when prompted",
116+
'Open "Run" (Win + R) and enter `certmgr.msc`.',
117+
'Navigate to "Trusted Root Certification Authorities" → "Certificates".',
118+
'Find the "CodeGate CA" certificate.',
119+
"Right-click and Delete the certificate.",
120+
"Confirm the deletion when prompted.",
127121
],
128122
},
129123
linux: {
130124
install: [
131-
"Copy the certificate to `/usr/local/share/ca-certificates/codegate.crt` (Ubuntu/Debian) or `/etc/pki/ca-trust/source/anchors/codegate.pem` (RHEL/Fedora)",
132-
"Run `sudo update-ca-certificates` (Ubuntu/Debian) or `sudo update-ca-trust` (RHEL/Fedora)",
133-
"Restart your IDE",
125+
"Copy the certificate to `/usr/local/share/ca-certificates/codegate.crt` (Ubuntu/Debian) or `/etc/pki/ca-trust/source/anchors/codegate.pem` (RHEL/Fedora).",
126+
"Run `sudo update-ca-certificates` (Ubuntu/Debian) or `sudo update-ca-trust` (RHEL/Fedora).",
127+
"Restart your IDE.",
134128
],
135129
remove: [
136-
"Delete the certificate file from `/usr/local/share/ca-certificates/` (Ubuntu/Debian) or `/etc/pki/ca-trust/source/anchors/` (RHEL/Fedora)",
137-
"Run `sudo update-ca-certificates --fresh` (Ubuntu/Debian) or `sudo update-ca-trust` (RHEL/Fedora)",
138-
"Restart your IDE",
130+
"Delete the certificate file from `/usr/local/share/ca-certificates/` (Ubuntu/Debian) or `/etc/pki/ca-trust/source/anchors/` (RHEL/Fedora).",
131+
"Run `sudo update-ca-certificates --fresh` (Ubuntu/Debian) or `sudo update-ca-trust` (RHEL/Fedora).",
132+
"Restart your IDE.",
139133
],
140134
},
141135
};

0 commit comments

Comments
 (0)