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
Extension installation failing from CLI but not GUI #2393
Installing extension from command line using code --install-extension vscoss.vscode-ansible fails with:
Installing extensions...
unable to get local issuer certificate
Failed Installing Extensions: vscoss.vscode-ansible
Installing extensions from the GUI works fine.
I sit behind a corporate proxy and I need to use corporate CA. For Chrome, I use libnss3-tools and certutil to add my certificates to the NSS database, and Chrome works fine, like the extension installation through GUI.
Just following up a bit on what's my use case here, because there may be a work-around for what I am looking for.
I want to be able to automatically (i.e. in a scriptable way) recreate vscode on an arbitrary machine with all my extensions and settings. Any idea on how to do it, even if not necessarily solving the problem in the original post, is welcome.
hello - we're also running into this intermittently as well as described in #6268
I had run into this issue last year as well and that issue is still open in a slightly different context (this was before dev containers) microsoft/vscode#131836
All of these seem to be tied to the fact that whatever Node runtime is being used in the remote by VSCode is not using system cert store. In our environments/base docker images, we always configure the main system cert store correctly with all the certs that are required. This seems to be solved again by setting NODE_EXTRA_CA_CERTS to point to the system cert store at /etc/ssl/certs/ca-certificates.crt
So the best solution will be that vscode remote is configured to always use the default cert store rather than use whatever comes with node runtime
Activity
j3mdamas commentedon Apr 22, 2020
Hi,
Just following up a bit on what's my use case here, because there may be a work-around for what I am looking for.
I want to be able to automatically (i.e. in a scriptable way) recreate vscode on an arbitrary machine with all my extensions and settings. Any idea on how to do it, even if not necessarily solving the problem in the original post, is welcome.
srinathh-pg commentedon Apr 22, 2023
hello - we're also running into this intermittently as well as described in #6268
I had run into this issue last year as well and that issue is still open in a slightly different context (this was before dev containers)
microsoft/vscode#131836
All of these seem to be tied to the fact that whatever Node runtime is being used in the remote by VSCode is not using system cert store. In our environments/base docker images, we always configure the main system cert store correctly with all the certs that are required. This seems to be solved again by setting
NODE_EXTRA_CA_CERTSto point to the system cert store at/etc/ssl/certs/ca-certificates.crtSo the best solution will be that vscode remote is configured to always use the default cert store rather than use whatever comes with node runtime