Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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

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
ignis
累計7000万DL超のスマホアプリを自社企画・開発 ツール系からマンガ、ゲームなど幅広いジャンルのアプリを展開
http://1923.co.jp/service-information
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away