-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Error when installing extensions when using HTTP proxy #239872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Now in VSCode 1.99, Copilot can't sign in, same error. 😦 |
How strange! #176609 (comment) fixed it. This should be either documented or fixed. |
The default for |
Yes, it also works if I remove that setting. It initially asked for authentication but it hasn't since, which makes sense. Maybe |
EDIT: This works as designed, unfortunately. See https://stackoverflow.com/a/75989394 for an explanation. TL;DR Electron doesn't allow options like Very unfortunate. Same here. My company uses SSL introspection via Watchguard. Thus every SSL certificate is replaced with a custom cert signed by our internal CA. The CA root certificate is installed on each machine. All openssl-based CLI work as expected. Once added to the browser trust store, Firefox and Chromium work, too. Only node.js-based apps fail to pick up that extra CA certificate. I added an env variable I also installed the extension https://marketplace.visualstudio.com/items?itemName=pharndt.node-extra-ca-certs-vscode from the marketplace to help. But yet vscode still fails to connect to SSL sites. No updates, extensions, not even the user avatar image from GitLens. Is there anything I can do? |
VS Code automatically loads OS certificates. Could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) and check the output of If you cannot install the extension through the Extensions viewlet in VS Code, you can download it from the browser here: https://github.com/chrmarti/vscode-network-proxy-test/releases and then install the downloaded VSIX with |
@chrmarti thx, brilliant extension! As per the debug log, node.js can connect but Electron cannot.
|
I also tried with https://marketplace.visualstudio.com/items?itemName=pharndt.node-extra-ca-certs-vscode disabled - same result as above. |
Make sure you have the proxy's CA certificate installed as root certificate in your OS. On Linux (which you are using?) Electron should read |
I'm using Linux Mint. As I wrote before:
The file is really there: $ file /etc/ssl/certs/ca-certificates.crt
/etc/ssl/certs/ca-certificates.crt: PEM certificate It also contains my custom root CA. Applications linked to OpenSSL seem to pick it up fine. If Electron actually read that file, too, it'd find the matching root certificate. Yet, it doesn't. Eg when looking for updates:
|
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Which always gives this error in the output panel:
The results of the network proxy test are below:
The text was updated successfully, but these errors were encountered: