LoginSignup
13
14

More than 5 years have passed since last update.

Ruby で bundle install とか gem install で SSL 証明書のエラーが出る

Last updated at Posted at 2013-10-18

こんなエラーが出たりします。

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

SSL 証明書を入れてあげることで解決します。

$ brew install curl-ca-bundle
$ 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
13
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
14