Error: unable to verify the first certificate / How to trust all certificates?

心已入冬 提交于 2020-05-15 04:08:32

问题


When I try to install an extension I get this error:

unable to verify the first certificate

I already know that the problem is our internal network structure, which wraps every SSL Certificate with our own and not every application trusts our certificate.

Is it possible to set the property Trust all SSL certificates in Visual Studio Code?

Thanks


回答1:


Had the same problem.

Adding environment variable

NODE_TLS_REJECT_UNAUTHORIZED=0

fixed it. Took this answer from here: Ignore invalid self-signed ssl certificate in node.js with https.request?




回答2:


My solution was to add the following to user settings ( File -> Preferences -> User Settings)

"http.proxyStrictSSL": false


来源:https://stackoverflow.com/questions/33820733/error-unable-to-verify-the-first-certificate-how-to-trust-all-certificates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!