Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I get "Certificate Verify Failed" on installing Bundler for Ruby on Rails, on Windows 7. Ruby 1.9.3

I've tried everything what I understood in my short knowladge of Programming.

When I enter "bundler install" I get "Certificate Verify Failed" (I've checked the certificate, it's updated) Then it ends up with "Make sure "gem install [gem's name] -v [version] succeds before bundling."

So I decided to install Gem-per-Gem, instead of trying to solve they certificate issue.

Will this work or I'm just wasting my time?

like image 881
Giorgio D. Baradit Toledo Avatar asked Dec 03 '14 02:12

Giorgio D. Baradit Toledo


1 Answers

Found it!

https://gist.github.com/luislavena/f064211759ee0f806c88

Most importantly...download https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem

Figure out where to stick it

C:\>gem which rubygems
C:/Ruby21/lib/ruby/2.1.0/rubygems.rb

Then just copy the .pem file in ../2.1.0/rubygems/ssl_certs/ and go on about your business.

NOTE The above link is currently down as of 10/12/2016. Commentary led me to do some follow-up research and it appears to be a continuing problem and is not being directly discussed. There are other topics directly on the rubygems KB you may want to follow --> http://help.rubygems.org/search?utf8=%E2%9C%93&q=SSL+Certs&t=d&scope=all&category_id=&recommend=1

like image 185
beauXjames Avatar answered Oct 31 '22 18:10

beauXjames