Connect error: caused by unable to verify the first certificate #564
Comments
A caveat: This solution is less secure, bad practice, don't do this. Change the registry url protocol from https to http, and as seen elsewhere in this forum, set rejectUnauthorized to false. .typingsrc (placed in project directory or in user root directory)
Optionally add your github token (I didn't find success until I had added this too.)
See instructions for setting up your token at https://github.com/blog/1509-personal-api-tokens |
it works !!
in my user root directory ( |
I'm behind a corporate proxy that messes up the certificate chain. In typings@0.7.12, I was able to use typings by setting rejectUnauthorized=false in .typingsrc, and the proxy server address is defined in environment variables HTTP_PROXY and HTTPS_PROXY. However, in 1.2.0, this didn't work anymore and I get: I can copy that URL into Chrome and I get the search result there as JSON. If I look at the certificate chain there, I see that the corporate proxy has injected itself as CA. That CA certificate is in the trusted certificate store. If I remove rejectUnauthorized=false in .typingsrc, I get this error:
As I said, in typings v0.7.12 setting rejectUnauthorized to false worked. In 1.2.0 it doesn't. I haven't used it in the intermediate versions. The only workaround I've found that works behind a corporate proxy now is adding
To me, it seems that something at the api.typings.org end is rejecting my request with a 403 when typings try to access api.typings.org, which is weird as it works through Chrome. |
I'm also behind a corporate proxy and were getting this error message
By using the suggestion above and adding this to a .typingsrc file I get another error message however.
The error message I get now is this:
I'm trying to get the quickstart of Angular 2 working behind a corporate proxy and my typings.json looks like this if it might be of any help.
|
#615 Added information on .typingsrc files to faq and added upgrade instruction for .tsdrc to .typings.rc |
By @morwin10:
I get errors when i type:
typings install dt~es6-shim --global --save
The text was updated successfully, but these errors were encountered: