Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ca52a8

Browse files
authored
docs: document steps for adding cert to JetBrains plugin settings (#16882)
- document the steps from@stirby in ticket- separate the different OSs in a way that's easier to look at- fix typo[preview](https://coder.com/docs/@593-ca-cert-plugin/user-guides/workspace-access/jetbrains#configuring-the-gateway-plugin-to-use-internal-certificates)Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
1 parent83f1d82 commit8ca52a8

File tree

1 file changed

+42
-29
lines changed

1 file changed

+42
-29
lines changed

‎docs/user-guides/workspace-access/jetbrains.md

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -94,44 +94,57 @@ Failed to configure connection to https://coder.internal.enterprise/: PKIX path
9494
```
9595

9696
To resolve this issue, you will need to add Coder's certificate to the Java
97-
trust store present on your local machine. Here is the default location of the
98-
trust store for each OS:
97+
trust store present on your local machine as well as to the Coder plugin settings.
9998

100-
```console
101-
#Linux
102-
<Gateway installation directory>/jbr/lib/security/cacerts
99+
1. Add the certificate to the Java trust store:
103100

104-
#macOS
105-
<Gateway installation directory>/jbr/lib/security/cacerts
106-
/Library/Application Support/JetBrains/Toolbox/apps/JetBrainsGateway/ch-0/<app-id>/JetBrains Gateway.app/Contents/jbr/Contents/Home/lib/security/cacerts # Path for Toolbox installation
101+
<divclass="tabs">
107102

108-
#Windows
109-
C:\Program Files (x86)\<Gateway installation directory>\jre\lib\security\cacerts
110-
%USERPROFILE%\AppData\Local\JetBrains\Toolbox\bin\jre\lib\security\cacerts # Path for Toolbox installation
111-
```
103+
####Linux
112104

113-
To add the certificate to the keystore, you can use the`keytool` utility that
114-
ships with Java:
105+
```none
106+
<Gateway installation directory>/jbr/lib/security/cacerts
107+
```
115108

116-
```console
117-
keytool -import -alias coder -file <certificate> -keystore /path/to/trust/store
118-
```
109+
Use the`keytool` utility that ships with Java:
119110

120-
You can use`keytool` that ships with the JetBrains Gateway installation.
121-
Windows example:
111+
```shell
112+
keytool -import -alias coder -file<certificate> -keystore /path/to/trust/store
113+
```
122114

123-
```powershell
124-
& 'C:\Program Files\JetBrains\JetBrains Gateway <version>/jbr/bin/keytool.exe' 'C:\Program Files\JetBrains\JetBrains Gateway <version>/jre/lib/security/cacerts' -import -alias coder -file <cert>
115+
####macOS
125116

126-
# command for Toolbox installation
127-
& '%USERPROFILE%\AppData\Local\JetBrains\Toolbox\apps\Gateway\ch-0\<VERSION>\jbr\bin\keytool.exe' '%USERPROFILE%\AppData\Local\JetBrains\Toolbox\bin\jre\lib\security\cacerts' -import -alias coder -file <cert>
128-
```
117+
```none
118+
<Gateway installation directory>/jbr/lib/security/cacerts
119+
/Library/Application Support/JetBrains/Toolbox/apps/JetBrainsGateway/ch-0/<app-id>/JetBrains Gateway.app/Contents/jbr/Contents/Home/lib/security/cacerts # Path for Toolbox installation
120+
```
129121

130-
macOS example:
122+
Use the`keytool` included in the JetBrains Gateway installation:
131123

132-
```shell
133-
keytool -import -alias coder -file cacert.pem -keystore /Applications/JetBrains\Gateway.app/Contents/jbr/Contents/Home/lib/security/cacerts
134-
```
124+
```shell
125+
keytool -import -alias coder -file cacert.pem -keystore /Applications/JetBrains\Gateway.app/Contents/jbr/Contents/Home/lib/security/cacerts
126+
```
127+
128+
####Windows
129+
130+
```none
131+
C:\Program Files (x86)\<Gateway installation directory>\jre\lib\security\cacerts\%USERPROFILE%\AppData\Local\JetBrains\Toolbox\bin\jre\lib\security\cacerts # Path for Toolbox installation
132+
```
133+
134+
Use the`keytool` included in the JetBrains Gateway installation:
135+
136+
```powershell
137+
& 'C:\Program Files\JetBrains\JetBrains Gateway <version>/jbr/bin/keytool.exe' 'C:\Program Files\JetBrains\JetBrains Gateway <version>/jre/lib/security/cacerts' -import -alias coder -file <cert>
138+
139+
# command for Toolbox installation
140+
& '%USERPROFILE%\AppData\Local\JetBrains\Toolbox\apps\Gateway\ch-0\<VERSION>\jbr\bin\keytool.exe' '%USERPROFILE%\AppData\Local\JetBrains\Toolbox\bin\jre\lib\security\cacerts' -import -alias coder -file <cert>
141+
```
142+
143+
</div>
144+
145+
1. In JetBrains, go to**Settings** >**Tools** >**Coder**.
146+
147+
1. Paste the path to the certificate in**CA Path**.
135148

136149
##Manually Configuring A JetBrains Gateway Connection
137150

@@ -185,7 +198,7 @@ This is in lieu of using Coder's Gateway plugin which automatically performs the
185198

186199
![Gateway Choose IDE](../../images/gateway/gateway-choose-ide.png)
187200

188-
The JetBrains IDE is remotely installed into`~/.cache/JetBrains/RemoteDev/dist`
201+
The JetBrains IDE is remotely installed into`~/.cache/JetBrains/RemoteDev/dist`
189202

190203
1. Click**Download and Start IDE** to connect.
191204

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp