Skip to content

Instantly share code, notes, and snippets.

@rupurt
Last active August 29, 2015 14:22
Show Gist options
  • Save rupurt/a9e35c8c219a37eb90f6 to your computer and use it in GitHub Desktop.
Save rupurt/a9e35c8c219a37eb90f6 to your computer and use it in GitHub Desktop.
Update SSL cert
#!/bin/bash
cd /usr/local/etc/openssl/certs/
curl -O http://curl.haxx.se/ca/cacert.pem
mv cacert.pem cert.pem
echo "export SSL_CERT_FILE=/usr/local/etc/openssl/certs/cert.pem" >> ~/.bash_profile.local
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment