Rails 彻底解决了 Mountain Lion 下 openssl-certificate-verify-failed 的问题

xiaolai · September 21, 2012 · 2863 hits

brew install openssl brew link openssl

download cert.pem file for 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 "

cert.pem file for openssl

export SSL_CERT_FILE=/usr/local/etc/openssl/certs/cert.pem" >> ~/.bash_profile source ~/.bash_profile

顺手改了个安装脚本: https://github.com/xiaolai/laptop

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.