Vscode-cpptools: Not able to Download packages - Corporate firewall inserts its own SSL certificate. All https calls fail

Created on 25 Apr 2018  路  3Comments  路  Source: microsoft/vscode-cpptools


Not able to Download packages

  • VSCode Version: 1.22.2
  • OS Version: Win 10
  • C/C++ extension version: 0.16.1

Steps to Reproduce:

  1. Use C/C++ extension

the end result is the below error:

Updating C/C++ dependencies...

Downloading package 'C/C++ language components (Windows)'  Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed to download https://go.microsoft.com/fwlink/?linkid=871267
Failed at stage: downloadPackages
Error: unable to get local issuer certificate
    at TLSSocket.<anonymous> (_tls_wrap.js:1088:38)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:188:7)
    at TLSSocket._finishInit (_tls_wrap.js:610:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)

If you work in an offline environment or repeatedly see this error, try downloading a version of the extension with all the dependencies pre-included from https://github.com/Microsoft/vscode-cpptools/releases, then use the "Install from VSIX" command in VS Code to install it.

Please let me know if there is already a way to get around this common problem with with "man in the middle" firewalls... (I think this is the problem because I continually run into this problem... If it is not please let me know, Thanks!)

Language Service question

Most helpful comment

Changed "http.proxyStrictSSL":... Thanks this works perfect for my env...

All 3 comments

Are you trying to solve the proxy issue, or do you want an offline VSIX to install?

A quick search for "vscode unable to get local issuer certificate" brings back the following link with some settings that might help:
https://github.com/Microsoft/vscode/issues/3492

Otherwise, you can use the offline VSIX packages that we post here on the Releases tab. You may want to disable automatic extension updates in VS Code so that it doesn't try to download the online package when we push updates.

Changed "http.proxyStrictSSL":... Thanks this works perfect for my env...

great!

Was this page helpful?
0 / 5 - 0 ratings