Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed on Mac

Using Homebrew, on Mac OSX 10.7.5

$ brew install openssl
Error: openssl-1.0.1e already installed

$ rake test.rake
rake aborted!
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I acknowledge that there are other questions like the one in title, but none of the solution seems to work. I have tried those at various points, with no success:

rvm pkg install openssl
rvm reinstall 1.9.3 --with-openssl-dir=$rvm_path/usr
rvm remove 1.9.3
brew install openssl
rvm install 1.9.3 --with-openssl-dir=`brew --prefix openssl`

I decided to check openssl version and noticed this:

$ openssl version
OpenSSL 0.9.8r 8 Feb 2011

Hopefully that is indeed the problem and the fix is as simple as making sure my laptop detects the correct OpenSSL.

But how do I fix this, so I have it use Homebrew's newer OpenSSL instead?

Thanks in advance.

like image 307
Craig Flannagan Avatar asked Feb 26 '13 04:02

Craig Flannagan


1 Answers

it worked for me using rvm

$ rvm osx-ssl-certs status all
$ rvm osx-ssl-certs update all
like image 61
SocoM Avatar answered Oct 09 '22 04:10

SocoM