Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Certificate Verify Failed in "gem install foundation"

Tags:

Trying to install Foundation after installing nodejs, ruby, and git plus bower.

I keep getting the following error and I dont know how to fix it:

Could not find a valid gem 'foundation' (>= 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/latest_specs.4.8.gz)

Any ideas?

like image 395
NixondisNRVA Avatar asked Dec 19 '14 20:12

NixondisNRVA


People also ask

How does gem install work?

What does gem install do? gem install , in its simplest form, does something kind of like this. It grabs the gem and puts its files into a special directory on your system. You can see where gem install will install your gems if you run gem environment (look for the INSTALLATION DIRECTORY: line):

What is GEM CLI?

Command Line Interface gem allows you to quickly specify command argument parser that will automatically generate usage, handle stdin, switches, options and arguments with default values and value casting.


1 Answers

If you're using RVM (highly recommended) you can run

rvm osx-ssl-certs update all 

Otherwise you can follow the directions at http://guides.rubygems.org/ssl-certificate-update/ and while the update_rubygems patch didn't do anything for me, manually installing the .pem file probably would have worked.

Without RVM the link suggests that you can try...

gem install bundler 

or

gem update --system 
like image 51
Ryan Taylor Avatar answered Nov 13 '22 09:11

Ryan Taylor