You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"self signed certificate in certificate chain" while attempting to install an extension via command line #144625
electronIssues and items related to Electroninfo-neededIssue requires more information from posterlinuxIssues with VS Code on LinuxnetworkNetwork related issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
I'm using npm on the same machine.
I'm also aware that node.js / npm is not using the certs installed in the OS, but uses the default Mozilla certs.
I've set the cafile config in npm from day one and that works fine!
so I went on and commented out the cafile and ran that command :
sure it adds every single root certificates from the OS, but for testing purpose....
so the environment variable gets picked up by node.js and npm ci works like a charm.
I get back to code in that same terminal,
ran printenv,
confirmed that I see that variable NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-bundle.crt
same outcome may I stress out that installing an extension in the GUI works fine
I tried the latest exploration build coming in from the official repo. Looking at the build timestamp, it's more recent.
did not work.
full log of what I tried is attached log.txt
I have the same issue when installing extensions in WSL.
When I do it via UI it works but if I use CLI I get the self signed certificate in certificate chain error.
Only temp workaround I found so far is to do export NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
For anyone who may come across this, I found a rather questionable workaroud for the time being (this will overwrite your settings.json, so be careful!):
electronIssues and items related to Electroninfo-neededIssue requires more information from posterlinuxIssues with VS Code on LinuxnetworkNetwork related issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
Activity
joaomoreno commentedon Mar 8, 2022
Did you see this?
yorkish commentedon Mar 8, 2022
I'm using npm on the same machine.
I'm also aware that node.js / npm is not using the certs installed in the OS, but uses the default Mozilla certs.
I've set the
cafileconfig in npm from day one and that works fine!so I went on and commented out the
cafileand ran that command :export NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-bundle.crtsure it adds every single root certificates from the OS, but for testing purpose....
so the environment variable gets picked up by node.js and
npm ciworks like a charm.I get back to code in that same terminal,
ran
printenv,confirmed that I see that variable
NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-bundle.crtsame outcome
may I stress out that installing an extension in the GUI works fine
joaomoreno commentedon Mar 9, 2022
Any thoughts Robo (@deepak1556)?
deepak1556 commentedon Mar 9, 2022
This should be addressed by nodejs/node@30e878b that avoids respecting the
NODE_EXTRA_CA_CERTSfor the electron runtime.yorkish can you try the following exploration build that contains the above fix and see if it helps, thanks!
yorkish commentedon Mar 9, 2022
I tried the latest exploration build coming in from the official repo. Looking at the build timestamp, it's more recent.
did not work.
full log of what I tried is attached
log.txt
yorkish commentedon Apr 4, 2022
any news on that issue ?
tried it unsuccessfully on v1.66
couldn't you guys add a cert bypass (command-line argument) only valid on an install extension via command-line?
ondraco commentedon Apr 12, 2022
I have the same issue when installing extensions in WSL.
When I do it via UI it works but if I use CLI I get the self signed certificate in certificate chain error.
Only temp workaround I found so far is to do
export NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crtyorkish commentedon Apr 13, 2022
ondraco this it what I tried already, and it doesn't work on Rocky Linux
vscodenpa commentedon Jul 11, 2022
Hey Robo (@deepak1556), this issue might need further attention.
yorkish, you can help us out by closing this issue if the problem no longer exists, or adding more information.
MaxwellBanks commentedon Jul 13, 2022
Running on Ubuntu 20.04 with VSCode version 1.69.1, I'm having the same issue I believe. Additionally, I tried the following workaround:
With no luck.
Seconding the request for a cert bypass feature for CLI extension installs, if at all possible.
MaxwellBanks commentedon Jul 13, 2022
For anyone who may come across this, I found a rather questionable workaroud for the time being (this will overwrite your
settings.json, so be careful!):Make sure you no longer have
"http.proxyStrictSSL": falsein yoursettings.jsonafter the fact!Still hoping for a built-in cert bypass, but this works in the meantime.
vscodenpa commentedon Oct 2, 2022
Hey Robo (@deepak1556), this issue might need further attention.
yorkish, you can help us out by closing this issue if the problem no longer exists, or adding more information.
vscodenpa commentedon Oct 10, 2022
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!