6

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

Mehul Tandale
  • 331
  • 1
  • 5
  • 17
mfreiholz
  • 697
  • 1
  • 7
  • 14
  • Does this answer your question? [Ignore invalid self-signed ssl certificate in node.js with https.request?](https://stackoverflow.com/questions/10888610/ignore-invalid-self-signed-ssl-certificate-in-node-js-with-https-request) – Liam Nov 08 '19 at 15:03

2 Answers2

16

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?

Community
  • 1
  • 1
Max
  • 176
  • 1
  • 3
8

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

"http.proxyStrictSSL": false
Leandro Gomide
  • 998
  • 1
  • 10
  • 31