Visual Studio Code devcontainers: how to trust our self-signed proxy/firewall certificate?

60 Views Asked by At

My corporate firewall is breaking TLS/SSL connections. I'd like to add a root certifiate to VSCode trust store. Is it possible?

Not of the below settings seem to affect devcontainers HTTP connections:

"http.experimental.systemCertificatesV2": false
"http.systemCertificates": false
"http.proxyStrictSSL": false

.devcontainer.json

{
    "features": {
        "ghcr.io/devcontainers/features/java:1": {
           "installMaven": "true"
       }
     },

    "name": "Java",
    "image": "mcr.microsoft.com/devcontainers/java:1-21-bullseye"
}

Error:

Resolving Feature dependencies for 'ghcr.io/devcontainers/features/java:1'...
* Processing feature: ghcr.io/devcontainers/features/java:1
Error: self signed certificate in certificate chain
    at TLSSocket.onConnectSecure (node:_tls_wrap:1553:34)
    at TLSSocket.emit (node:events:514:28)
    at TLSSocket._finishInit (node:_tls_wrap:970:8)
    at TLSWrap.onhandshakedone (node:_tls_wrap:746:12)
0

There are 0 best solutions below