Skip to content
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

Proxy error: unable to get local issuer certificate #1862

Closed
joaomoreno opened this issue Jan 8, 2016 · 7 comments
Closed

Proxy error: unable to get local issuer certificate #1862

joaomoreno opened this issue Jan 8, 2016 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) proxy Issues regarding network proxies
Milestone

Comments

@joaomoreno
Copy link
Member

From @dogfish182

2016-01-07_18-35-46

unable to get local issuer certificate
@joaomoreno joaomoreno added the bug Issue identified by VS Code Team member as probable bug label Jan 8, 2016
@joaomoreno joaomoreno self-assigned this Jan 8, 2016
@joaomoreno joaomoreno added this to the Backlog milestone Jan 8, 2016
@joaomoreno
Copy link
Member Author

Related to nodejs/node#3742

@dogfish182
Copy link

I'm not sure how to address this for myself as I have a standard install of win10 without any node stuff that i knowingly installed... also the issue presents on a fresh windows 7 corporate image that we don't use for development, so a basic install of win 7 for us (and 10 and 8.1) will all exhibit the same issue.

@colhountech
Copy link

This worked for me:
start a command prompt and navigate to working folder.

set NODE_TLS_REJECT_UNAUTHORIZED=0
code .

from http://stackoverflow.com/questions/33820733/error-unable-to-verify-the-first-certificate-how-to-trust-all-certificates

@joaomoreno
Copy link
Member Author

@colhountech Does it work if you set "http.proxyStrictSSL": false in your settings?

@joaomoreno joaomoreno added the proxy Issues regarding network proxies label Jul 6, 2016
@wgknowles
Copy link

// Whether the proxy server certificate should be verified against the list of supplied CAs.
This leads me to think there should be a way to add a CA to the "list of supplied CAs". Ideally, there should be a setting like http.useMachineCAStore that taps into the trusted root CA list of the system (same one used by IE)

Doesn't setting "http.proxyStrictSSL": false result in all CA's and self-signed certs being trusted? Seems like we are asking for a MITM hack.

@psmoot
Copy link

psmoot commented Sep 12, 2016

I'm having the same issue on Ubuntu 16 behind a firewall. Setting NODE_TLS_REJECT_UNAUTHORIZED worked but setting http.proxyStrictSSL did not.

I'm happy to try new builds if that will help resolving the issue, just let me know.

@joaomoreno
Copy link
Member Author

@psmoot #11702 Fix is out in 1.5.2.

@wgknowles Unfortunately we didn't dedicate time to look into the CA list yet.

Closing this as it seems a duplicate of #11702.

@joaomoreno joaomoreno added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 13, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) proxy Issues regarding network proxies
Projects
None yet
Development

No branches or pull requests

5 participants