@@ -94,44 +94,57 @@ Failed to configure connection to https://coder.internal.enterprise/: PKIX path
9494```
9595
9696To 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+ <div class =" 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
1902031 . Click ** Download and Start IDE** to connect.
191204
0 commit comments