visual-studio-codessl-certificatepki

Is there a way to modify the VSCode certificate store to add certificates?


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)?


Solution

  • 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: