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

2

11

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?

Mobile answered 3/12, 2014 at 2:19 Comment(1)
I am having a similar issue when attempting to update or install anything gem related...not certain how this all works and I'm trying to find a better understanding of what's going on as well...will keep this stream posted with anything that works for meFlex
F
26

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

Flex answered 4/12, 2014 at 15:45 Comment(5)
Some browsers (e.g. Chrome) may save the .pem file as .txt, be sure to change this back to just .pem.Monge
The download link doesn't work anymore. Is there any alternate download link?Soutache
Try updating to the latest bundler gem. The new certs are bundled starting with version 1.12.0.Flex
The .pem file listed here (and on the gitub gist link in this answer) is now a 404. Suggestions?Alltime
The certificate is here now: raw.githubusercontent.com/bundler/bundler/master/lib/bundler/…Electro
C
-1

Try replacing 'https://rubygems.org' with http://rubygems.org in the GemFile

Congruency answered 14/8, 2015 at 10:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.