How do I get Visual Studio Code to trust our self-signed proxy certificate?

前端 未结 4 1583
后悔当初
后悔当初 2020-12-06 04:01

Our corporate firewall/proxy is keeping VS Code from being able to install extensions because Code doesn\'t trust something in the chain. It doesn\'t reliably give an error,

4条回答
  •  醉梦人生
    2020-12-06 04:56

    2020 answer for MacOS Catalina and possibly others: Make sure that the certificates are installed and trusted (I have them in the System category).

    Then, go into settings, Application, Proxy, and UNCHECK the "System certificates" option. Restart vscode and RE-CHECK it. Restart again, and it works.

    No idea why you have to do this, but it worked for me. I was very surprised. The error I was getting in the developer console (Help - toggle developer tools - console tab) was "self signed certificate in certificate chain".

提交回复
热议问题