Fix openssl Error
30 Apr 2015While developing lately in Ruby on Rails I ran into a dastardly error OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Which made me go, What the Heck?! After a lot of googling, I found the best way to fix this problem. The best way to fix the OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
problem is to run just two simple commands.
curl -s http://curl.haxx.se/ca/cacert.pem > ~/.cacert.pem
echo 'export SSL_CERT_FILE="$HOME/.cacert.pem"' >> ~/.bash_profile
I seriously spent a LOT of time looking into this error, and hope this can help some one else fix their error a little faster than I was able to! Feel free to comment suggestions below!
If you liked this post, you can share it with your followers or follow me on Twitter!
Comments