Skip to content

Instantly share code, notes, and snippets.

@dickeylth
Forked from 1stvamp/mac-curl-ca-bundle.sh
Last active August 29, 2015 14:08
Show Gist options
  • Save dickeylth/5abc1742d4b6a7408c68 to your computer and use it in GitHub Desktop.
Save dickeylth/5abc1742d4b6a7408c68 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir /tmp/curl-ca-bundle
cd /tmp/curl-ca-bundle
wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2
tar xzf curl-7.22.0.tar.bz2
cd curl-7.22.0/lib/
./mk-ca-bundle.pl
if [ ! -d /usr/share/curl/ ]; then
sudo mkdir -p /usr/share/curl/
else
sudo mv /usr/share/curl/ca-bundle.crt /usr/share/curl/ca-bundle.crt.original
fi
sudo mv ca-bundle.crt /usr/share/curl/ca-bundle.crt
echo
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment