Rubygems: Ruby 2.3.1 Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

Created on 25 Oct 2016  路  5Comments  路  Source: rubygems/rubygems

I'm having a problem.

My current problem is failure to install new gems: I tried installing capybara, but got...
ERROR: Could not find a valid gem 'capybara' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

I've looked at the article at https://gist.github.com/luislavena/f064211759ee0f806c88#installing-using-update-packages-new but when I tried to download the certificate (AddTrustExternalCARoot-2048.pem) I got a '404 - Not Found' error

This issue is related to:

  • [ ] Network problems
  • [ ] Installing a library
  • [ ] Publishing a library
  • [ ] The command line gem
  • [x] Other

Here are my current environment details:
ruby 2.3.1p112 (2016-04-26 revision 54768) [i386-mingw32] running on Windows 10

$ gem env version
2.5.1

I will abide by the code of conduct.

Most helpful comment

I've fixed it: the comment by chris-morgan in issue #1745 about "Copying https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem" resolved it.

All 5 comments

I've fixed it: the comment by chris-morgan in issue #1745 about "Copying https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem" resolved it.

@stevelake Thank you for sharing your fix! I'm new to Ruby and it took me a while to hunt down the fix for the SSL error. Again, thanks!

@stevelake Really appreciate, you shared this solution.
you saved me a couple of hours of digging the web.

Thanks!!

Another option is upgrading to Ruby 2.3.3, it worked without the error for me.

yeah. update ruby to 2.3.x resolve this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agrobbin picture agrobbin  路  3Comments

jhandford picture jhandford  路  5Comments

adrianomitre picture adrianomitre  路  5Comments

morgoth picture morgoth  路  4Comments

owst picture owst  路  4Comments