Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

unable to get local issuer certificate #54

Closed
alphaCoder opened this issue Sep 28, 2016 · 9 comments
Closed

unable to get local issuer certificate #54

alphaCoder opened this issue Sep 28, 2016 · 9 comments

Comments

@alphaCoder
Copy link

Apologies if this is not the right place to add the issue.

I downloaded vs code 1.5.3 and installed "Visual Studio Team Services Extension"
I supplied the team login credentials but I see the below image
image

When I hover on team it is showing "Unable to get local issuer certifcate"
I added under UserSettings "http.proxyStrictSSL": false
but still getting the error.

Following the below issues
https://github.com/Microsoft/vscode/issues/11774
https://github.com/Microsoft/vscode/issues/11702

I installed vs code insiders, still seeing the issue.

Thanks in advance for looking into the issue and appreciate any suggestions.

P.S. I am on vpn and connecting to on premise tfs server.

Thanks

@jeffyoung
Copy link
Contributor

Hi @alphaCoder.

This is the proper place to file issues with the Team Services extension. So you're good.

The extension doesn't use VS Code's http stack to communicate with TFS but instead uses the vsts-node-api. I'm not sure if the issue you're seeing is similar to the proxy issue, but the latest update to vsts-node-api included some support for proxy servers. (There are more details about what work that needs to be done in the extension in #51.)

Presumably you're attempting to connect to your on-prem TFS server with HTTPS (SSL)? Do you know if you're using a proxy as well? Do you have any other http settings listed in the User Settings or as environment variables?

I expect to begin the work to move to the latest version of vsts-node-api soon but I don't have an ETA yet on completion.

@alphaCoder
Copy link
Author

Hi Jeff,

Thanks for your quick reply. I don't have any other setting other than "http.proxyStrictSSL": false.
I don't think I am using any proxy. Thank you very much for adding it to your priority list.

@jeffyoung
Copy link
Contributor

Hi @alphaCoder. If you were connecting to an on-premises TFS server via HTTPS, I just pushed a change in v1.119.0 that should help this scenario (I'm seeing successful connections already). If you're still interested, I'd be happy for you to try it out (if you haven't already).

@rcabr
Copy link

rcabr commented Jun 27, 2018

Hi @alphaCoder,
I solved this problem by setting the environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 before launching Code.
Good luck!

@godsake
Copy link

godsake commented Mar 5, 2019

Hi @alphaCoder,
I solved this problem by setting the environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 before launching Code.
Good luck!

Thanks, works like a charm.
in bin directory, i edited the file code.cmd and added the variable.

@TimCluyts
Copy link

Hi @alphaCoder,
I solved this problem by setting the environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 before launching Code.
Good luck!

This worked for me too! Thanks a bunch!

@iarckstr14y
Copy link

iarckstr14y commented Apr 16, 2020

image

Hi, I've tried setting the environment variable and it opens just fine, as seen here:
image

But the second I open a folder, it gives me the same local issuer certificate issue. Does anyone have any ideas? @jeffyoung

@FlorisDevreese
Copy link

I fixed the issue by setting the NODE_EXTRA_CA_CERTS environment variable to the path of the certificate used by Azure DevOps

@iarckstr14y
Copy link

I fixed the issue by setting the NODE_EXTRA_CA_CERTS environment variable to the path of the certificate used by Azure DevOps

Thank you so much! This worked

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants