15

I am using a Windows PC running 8.1 and working with Ruby Installer 2.1.5.

While installing a gem I am getting a error:

C:\> gem install bundle
ERROR:  Could not find a valid gem 'bundle' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/latest_specs.4.8.gz)

I hope there is a good solution.

Martin Tournoij
  • 26,737
  • 24
  • 105
  • 146
Mahabub Islam Prio
  • 1,075
  • 11
  • 25
  • possible duplicate: http://stackoverflow.com/questions/10246023/bundle-install-fails-with-ssl-certificate-verification-error – Nimir Dec 09 '14 at 13:41
  • Hi Nimir , I just take a look at your link ... and thanks for such a quick reply . but the problem is quite not so same. I am having problem while I am running latest version of RubyInstaller .. :) ..how ever could be that is also related with SSL error ... but lets see ... there is a lot of Guru out there...I can wait for answer – Mahabub Islam Prio Dec 09 '14 at 13:42
  • ok, how about this one: http://stackoverflow.com/questions/19150017/ssl-error-when-installing-rubygems-unable-to-pull-data-from-https-rubygems-o – Nimir Dec 09 '14 at 13:45
  • Taking a good look at it... Thanks Nimir . :) you are awesome.. – Mahabub Islam Prio Dec 09 '14 at 13:47
  • 1
    Got it here ... https://gist.github.com/fnichol/867550 thanks Nimir – Mahabub Islam Prio Dec 09 '14 at 13:55
  • 1
    Glad you found a work around, btw you can answer and accept your own question to help ppl facing the same issue in the future :) – Nimir Dec 09 '14 at 14:06

2 Answers2

34

I had this problem too. But using the older version is not the proper solution.

Here is the two solution help to fix this certificate error

1. Using the http instead of https will allow you to install the gem without that error

gem install bundler -r --source http://rubygems.org/

CoolMonster
  • 2,258
  • 25
  • 50
0

I had this problem, it seems the problem is due to ruby installer version (2...) , I tried version 1.9.3 and the problem was solved.