Mark's Blog About Search Activity

Ruby 1.9 and SSL error

Got this error today w/ my rails app locally hitting S3

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

Thankfully found a great explanation and discussion on this blog and ultimately Tom Gallagher’s comment on how to fix this w/ homebrew:

rvm pkg install openssl
rvm install 1.9.3 –with-openssl-dir=$rvm_path/usr
cd $rvm_path/usr/ssl
curl -O <a href="http://curl.haxx.se/ca/cacert.pem" rel="nofollow">http://curl.haxx.se/ca/cacert.pem</a>
mv cacert.pem cert.pem
If you liked this post, you can share it with your followers or follow me on Twitter!
comments powered by Disqus