Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL error when checking for updates. No action option to connect anyway. #30871

Closed
Liquidmantis opened this issue Jul 17, 2017 · 7 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug install-update VS Code installation and upgrade system issues
Milestone

Comments

@Liquidmantis
Copy link

When checking for updates while behind a corporate proxy, an SSL error is given and the user is asked if they want to connect anyway, but there is no option to do so. Disabling strict SSL doesn't help either.

image

  • VSCode Version: 1.14.0-insider
  • OS Version: MacOS 10.12.5

Steps to Reproduce:

  1. Check for VS Code Update
@joaomoreno
Copy link
Member

Interesting, never saw this.

@joaomoreno joaomoreno added this to the Backlog milestone Jul 19, 2017
@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug install-update VS Code installation and upgrade system issues labels Jul 19, 2017
@angelo-hub
Copy link

Bump, I'm also getting this when checking for updates

@joaomoreno
Copy link
Member

https://code.visualstudio.com/docs/setup/network#_ssl-certificates

Does the update work if you launch Code with --ignore-certificate-errors?

@angelo-hub
Copy link

Hey @joaomoreno I tried that, and it didn't work, I'm also behind a corporate proxy though, however when I bypass the proxy to do the update, it still doesn't work.

@joaomoreno
Copy link
Member

it still doesn't work

But you still get the same SSL error?

@chrmarti chrmarti removed the insiders label Sep 27, 2017
@rdamron
Copy link

rdamron commented Oct 16, 2017

Also having this issue.

The problem is very likely due to corporate firewall proxy. Our proxy will mitm tls traffic to do deep packet inspection.

The problem is that the root cert used to sign the the certs presented isn't part of the bundled chrome binary in electron and electron doesn't pick up certs from the host environment.

I've gotten around this in my own electron apps by manually adding the cert to https.globalAgent. Perhaps there could be a config option to add certs?

function addRootCA() {
  const trustedCa = ["rootca.crt"];

  https.globalAgent.options.ca = [];
  for (const ca of trustedCa) {
    capath = path.join(__dirname, ca);
    https.globalAgent.options.ca.push(fs.readFileSync(capath));
  }
}

@joaomoreno
Copy link
Member

To keep the number of issues in our inbox on a manageable level, we're closing issues that have been on the backlog for a long time but haven't gained traction: We look at the number of votes the issue has received and the number of duplicates issues filed.

Thanks for your understanding. Happy coding!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug install-update VS Code installation and upgrade system issues
Projects
None yet
Development

No branches or pull requests

5 participants