Currently, the only way to use VSCode get around a corporate firewall that requires company CA certificates is to set "http.proxyStrictSSL = false" in the config. This is a no-go for me at work. I know that VSCode uses the Chromium networking stack, so there is a way to modify the certificate store when building VSCode (as stated here: Getting Chrome to accept self-signed localhost certificate, for example)?
According to https://code.visualstudio.com/docs/setup/network, the solution is to edit the system certificate store:
Since Chromium uses the OS's certificate trust infrastructure, the preferred option is to add your proxy's certificate to your OS's trust chain.
This means that your answer is OS-dependent:
Import-Certificate
or the GUI equivalentcertutil
is used to edit them.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With