16
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

bundle install する時、証明書エラーが出る。

Last updated at Posted at 2013-10-13

bundle install するときに下記のようなエラーが出る場合がある。


$ bundle install
Fetching source index from https://rubygems.org/
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile
sources and change 'https' to 'http'.

rubygems.org で使用されているサーバ証明書を検証する際に、OpenSSLが用いる証明書が古くなってしまっている。

解決方法は http://bit.ly/ruby-ssl に書かれている。

rvm を使っている場合は下記のようにすれば、然るべき証明書が更新される。


$ rvm osx-ssl-certs status all   # 証明書の検証
Certificates for /path/to/ssl/cert.pem: Old. 

$ rvm osx-ssl-certs update all # 証明書の更新
Updating certificates for /path/to/ssl/cert.pem: Updating certificates in '/path/to/ssl/cert.pem'.
Updated.

16
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
16
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?