Skip to content

Instantly share code, notes, and snippets.

@iorionda
Created November 5, 2013 16:31
Show Gist options
  • Select an option

  • Save iorionda/7321758 to your computer and use it in GitHub Desktop.

Select an option

Save iorionda/7321758 to your computer and use it in GitHub Desktop.
RubyでHTTPS接続時にSSL証明書のエラーがでる。 ref: http://qiita.com/iori-o@github/items/1babb333e130c8dc70c6
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B`
% 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