Resolve OpenSSL::SSL::SSLError on Yosemite

08:56 Anil Maurya 1 Comments

If you are using rvm installed ruby on Yosemite OSX and getting error :

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

then reinstalling ruby with `--disable-binary` may fix this Issue.

rvm reinstall 2.1.2 --disable-binary


Ruby installed with packaged binary in rvm has OpenSSL path: /etc/openssl 
Path of installed openssl is : /usr/local/etc/openssl

To check openssl directory:

> irb
> require 'openssl'

1 comment :

  1. Thank you! This worked after lots of other failed attempts...