Skip to content

Extension installation failing from CLI but not GUI #2393

Open

Description

  • VSCode Version: 1.42.1; c47d83b293181d9be64f27ff093689e8e7aed054; x64
  • OS Version: Ubuntu 16.04.6 LTS

Steps to Reproduce:

Installing extension from command line using code --install-extension vscoss.vscode-ansible fails with:

Installing extensions...
unable to get local issuer certificate
Failed Installing Extensions: vscoss.vscode-ansible

Installing extensions from the GUI works fine.

I sit behind a corporate proxy and I need to use corporate CA. For Chrome, I use libnss3-tools and certutil to add my certificates to the NSS database, and Chrome works fine, like the extension installation through GUI.

Do I need some extra settings or environment variables set? Looking for answers in https://code.visualstudio.com/docs/setup/network and corresponding issues did not help.

Does this issue occur when all extensions are disabled?: Yes

Activity

  1. added
    proxy
    feature-request
    on Feb 20, 2020
  2. j3mdamas commented on Apr 22, 2020

    @j3mdamas
    Author

    Hi,

    Just following up a bit on what's my use case here, because there may be a work-around for what I am looking for.

    I want to be able to automatically (i.e. in a scriptable way) recreate vscode on an arbitrary machine with all my extensions and settings. Any idea on how to do it, even if not necessarily solving the problem in the original post, is welcome.

  3. srinathh-pg commented on Apr 22, 2023

    @srinathh-pg

    hello - we're also running into this intermittently as well as described in #6268

    I had run into this issue last year as well and that issue is still open in a slightly different context (this was before dev containers)
    microsoft/vscode#131836

    All of these seem to be tied to the fact that whatever Node runtime is being used in the remote by VSCode is not using system cert store. In our environments/base docker images, we always configure the main system cert store correctly with all the certs that are required. This seems to be solved again by setting NODE_EXTRA_CA_CERTS to point to the system cert store at /etc/ssl/certs/ca-certificates.crt

    So the best solution will be that vscode remote is configured to always use the default cert store rather than use whatever comes with node runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestproxy

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions