-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Could not verify the SSL certificate for https://rubygems.org/ #4555
Comments
The same has been happening here since yesterday.
|
any rubygems version older than 2.7.11, 3.0.9, and 3.1.5 is expected to have cert issue. Please update to the latest patch version and let us know if the issue exists. we would also be interested in knowing more about the timeline of the issue. were these older versions working for you before yesterday? The cert change and corresponding releases were made on 9 Dec, 2020. https://blog.rubygems.org/2020/12/09/3.0.9-released.html |
For me, yes. They were working as always. Something I realized now is that I can't event open https://rubygems.org on my browser (certificate issues). I've tried to reinstall OpenSSL, but nothing. 🤷♂️ |
As I am using 3.1.4 (which is under 3.1.5) and it's is expected for me to have the certificate issue, I cant't even update rubygems by typing Do you have any tips for me on how I could do that? |
We have these instructions for manually updating the certificates: https://bundler.io/v2.2/guides/rubygems_tls_ssl_troubleshooting_guide.html#updating-ca-certificates. |
Well, it sounds like we need to update the guide because the certificate link is broken 😅. |
Yeah. I did it. I went through all the steps. But it didn't work either. 😢
So what's the right one? |
please try this https://bundler.io/v2.1/guides/rubygems_tls_ssl_troubleshooting_guide.html#updating-ca-certificates Alternatively, you can also download rubygems-update from your browser https://rubygems.org/pages/download and install it using the downloaded gem file.
if neither of these work, please share the commands you ran and their output here or at [email protected] PS: try installing ca-certificates package if you can't access rubygems.org in your browser either. |
Thank you for your help and patience guys, much appreciated! Is there potential for this problem to originate on the RubyGems host? I noticed for example that the SSL certificate served by some of the subdomains is also invalid. Here are a couple of SSL reports: uptime.rubygems.org - https://www.ssllabs.com/ssltest/analyze.html?d=uptime.rubygems.org These reports indicate the same problem that I am seeing in my browser when I visit rubygems.org and when I run
This output is from |
I first noticed this issue yesterday, 21-APR-2021 at 21:30 GMT. The certificate I am being served says: |
Thank you for pointing this out. these subdomains were pointing to legacy endpoints, I have updated them.
This command is not working because you need to add |
this is a bit unexpected. generally, browsers come bundled with popular CAs. rubygems.org cert is issued by GlobalSign Root CA - R3. Do these URLs also show invalid cert in your browsers https://valid.r3.roots.globalsign.com/ https://www.lemonde.fr/ ? Can you please share your browser name, version and a screenshot (with URL)?
|
I'm using Google Chrome ( 89.0.4389.128), and experiencing the same issues.
No additional servers were offered. |
hmm.. this is not correct. I will double-check if this can be an issue at our end. I am guessing others are having because of this outdated DNS reply. |
That returns this:
|
I had the same result here.
And here too. |
Thank you for the info. Can you please share the output of since |
|
sorry, this doesn't seem like complete output. for example, it has no answer section (151.101.192.70 part). Can you please try |
|
Thank you everyone for your help with this!
This hint pointed me in the right direction. It turns out that the line Thanks all 🙂 |
status REFUSED is not expected. perhaps you should try running it again.
I am trying to verify the same with
If you can't set your nameserver to 8.8.8.8 or any other nameserver (1.1.1.1 is from Cloudflare) which is replying with correct records, you may have to do some sleuthing on your own. It can also be possible that something in your network has cached DNS response overzealously and is not respect TTL. Maybe try to check why |
My issues were fixed by running |
Wow. I hadn't realized there was an entry for rubygems.org at my Thank you all. 😄 |
I remember why I added it to etc/hosts now. MacOS will automatically fall back to IPv4 when IPv6 doesn't resolve. On Windows or Linux, you need to specify the route in etc/hosts. Or at least, 2 years ago you did, otherwise gems wouldn't be downloaded. 😅 Might be fixed now. |
If you are having issues with IPv6 and need IPv4 fallback, you can enable it by setting
Overriding rubygems.org DNS permanently using /etc/hosts will break things again sometime in future. |
It sounds like this can be closed now since all three affected users were affected by the same issue of having a bad entry in |
Thank you everyone! Yes, I'll close this issue now as it seems everyone affected has found a solution Thank you so much for your time and patience with this. Much appreciated indeed! ❤️ |
Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate Ruby Devs,due to "root certificate expiration" issue, you may see Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate error during bundle install. if you run into the issue, please run following command in your terminal and then do bundle install. bundle config ssl_verify_mode 0 && echo ":ssl_verify_mode: 0" > ~/.gemrc |
This is the perfect answer which works for me. Thanks for saving my precious time. |
if you are on Mac and manage brew reinstall ca-certificates Also, running the above mentioned command (also see below) is dangerous, since it removes ssl verification and exposes you to a man-in-the-middle attack bundle config ssl_verify_mode 0 && echo ":ssl_verify_mode: 0" > ~/.gemrc |
This fixed it! After hours of trying every solution out there, thanks so much @friendlyantz |
Describe the problem as clearly as you can
Running
bundle install
fails due to https://RubyGems.org returning an invalid SSL certificate.RubyGems.org seems to be using a new SSL certificate but it doesn't cover this domain.
Post steps to reproduce the problem
Run
bundle install
in a project that usessource "https://rubygems.org"
in its GemfileWhich command did you run?
bundle install
What were you expecting to happen?
I expected the project's gems to be installed
What actually happened?
An error was returned:
If not included with the output of your command, run
bundle env
and paste the output belowEnvironment
Bundler Build Metadata
The text was updated successfully, but these errors were encountered: