Skip to content

Instantly share code, notes, and snippets.

@moutten
Created May 2, 2013 18:49
Show Gist options
  • Select an option

  • Save moutten/5504410 to your computer and use it in GitHub Desktop.

Select an option

Save moutten/5504410 to your computer and use it in GitHub Desktop.
#!/bin/zsh
# Fixes ssl certificate errors with Ruby 1.9.3 when using RVM
if [[ -s $HOME/.rvm/usr/ssl ]] ; then curl http://curl.haxx.se/ca/cacert.pem -o ~/.rvm/usr/ssl/cert.pem ; fi
if [[ -s /usr/local/etc/openssl ]] ; then curl http://curl.haxx.se/ca/cacert.pem -o /usr/local/etc/openssl/cert.pem ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment