Skip to content

Instantly share code, notes, and snippets.

@kotlav
kotlav / README.md
Last active July 27, 2017 15:39
Solution to error "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"

Another solution

Get the latest cacert.pem file from wget http://curl.haxx.se/ca/cacert.pem And set these two ENV vars
export SSL_CERT_DIR=/path-to_pem_dir
export SSL_CERT_FILE=/path-to_pem_file

Best solution

Re-install your rvm ruby version without the binary.
rvm uninstall <your_ruby_version>
rvm install --disable-binary