Skip to content

Instantly share code, notes, and snippets.

@mortenjohs
Created February 26, 2013 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mortenjohs/5039692 to your computer and use it in GitHub Desktop.
Save mortenjohs/5039692 to your computer and use it in GitHub Desktop.
Ruby, rvm, and root certificates
mkdir $rvm_path/usr/ssl
cd $rvm_path/usr/ssl
curl -O http://curl.haxx.se/ca/cacert.pem # download certificates
mv cacert.pem cert.pem # move them in place
touch ~/.bashrc # create .bashrc if it does not exist
echo 'export SSL_CERT_FILE=~/.rvm/usr/ssl/cert.pem' >> ~/.bashrc # add key to environment
source ~/.bashrc # or close your consoles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment