-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Self signed certificate in certificate chain error #980
Comments
Looks the same as #841 ssl settings (like CA or strict ssl) don't work yet 😢 |
@vbfox Thanks! Will follow that post. |
We've merged support for |
@kittens in which version it is or will be released? |
working now in yarn v0.16.0 |
I still get this error with 0.16.1 |
Same here. I tried just the
|
Looks like it works when I specify the config in .yarnrc but not from command line |
For me calling
|
I also found that if I duplicated the strict-ssl and other config from .npmrc into .yarnrc then things started working (or use |
not working anymore in 0.23.3 |
same with v0.27.5 aswell
|
I had this same type of error. Doing |
I can't find .yarnrc file in C:/Users. Pls let know how can I create it. |
@monicapeddi021 I never created the file myself. I simply went to the command line and ran |
@danielhusar I just tried $ yarn --version
1.3.2
|
I had the same problem on windows 10. open windows powerShell and enter the following command:
Then you can use:
|
Yes, I have the same error when running |
Recommending to set Please don't work around issues, and instead fix them properly. So enable ssl strict:
And then tell
|
Works great if you have the certificate. How do you fix without? |
When you get this error is because your computer is not able to communicate directly with the url being requested, maybe because your are behind a corporate firewall or proxy that uses a custom self signed certificate, therefore in either cases you need to ask the administrator of your network to provide you the certificate. |
@cgatian Typically you have access to the certificate (you simply don’t know how to download it). Most registry software support TLS. |
@Exadra37 where is the certificate file? how do i know it exists, etc? |
@Nathan187 you need to ask your Network Administrator to give you the file and then tell yarn where you have placed it. |
I tried |
i had some on macOS bigsur i disabled the proxy it fixed my issue |
On Ubuntu 20.04, use |
this issue is back since I upgraded to yarn 3, setting yarn config set enableStrictSettings false does not fix the issue |
for yarn v2/3, run: yarn config set enableStrictSsl false |
For anyone who couldn't get any of the solutions mentioned in this thread to work, the only thing that ended up working on my work computer was to get the certificate file from my IT department then set the |
You are running in insecure mode now, thus defeating the security that your IT department wants to enforce company wide. |
Right, I understand that and certainly didn't mean to imply that I was recommending setting |
So, you are indeed recommending/endorsing a poor security solution by saying this. |
This is a completely unnecessary and clearly false accusation. I made it clear in #980 (comment) that I thought the |
Yarn relies on Node. As mentioned by @jakeboone02, node has an environment variable for adding a custom CA to the existing ones, without replacing: Set this to your |
We had this happen to some users only on Windows for a few packages and I definitely don't understand what cert is supposed to be where |
Had to use: |
Same issue in yarn 4.5.0. Do not advise disabling SSL. That's apart from corepack's own problems integrating with proxies and self signed certificate chains. |
Hey,
I'm trying to move from npm to yarn. I've installed yarn and set up the following config variables :
http-proxy
,https-proxy
andstrict-ssl
: false.When I try to
yarn
, at step[1/4] Resolving packages
I get the following error :As far as I know websockets don't work behind my corporate proxy. Any workarounds ?
The text was updated successfully, but these errors were encountered: