Created
November 5, 2013 16:31
-
-
Save iorionda/7321758 to your computer and use it in GitHub Desktop.
RubyでHTTPS接続時にSSL証明書のエラーがでる。 ref: http://qiita.com/iori-o@github/items/1babb333e130c8dc70c6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % brew install curl-ca-bundle | |
| # SSL証明書をどこに置けばいいのかを調べる。 | |
| % ruby -ropenssl -e 'p OpenSSL::X509::DEFAULT_CERT_FILE' | |
| "/usr/local/etc/openssl/cert.pem" | |
| % cp /usr/local/opt/curl-ca-bundle/share/ca-bundle.crt /usr/local/etc/openssl/cert.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment