brew install openssl brew link openssl
cd /usr/local/etc/openssl/certs/ sudo curl -O http://curl.haxx.se/ca/cacert.pem sudo mv cacert.pem cert.pem cd - echo "
export SSL_CERT_FILE=/usr/local/etc/openssl/certs/cert.pem" >> ~/.bash_profile source ~/.bash_profile
顺手改了个安装脚本: https://github.com/xiaolai/laptop