3
3

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.

MacOSXでRVMでインストールしたRubyのSSLの証明書エラーの対処法

Last updated at Posted at 2014-02-02

現象

mechanize等ででSSLサイトをスクレイピングする時:

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

このようなエラーが出たら、証明書が失効している可能性がある。このようなとき証明書の有効性を以下のようにして調べることができる。

$ rvm osx-ssl-certs status all
rvm osx-ssl-certs status all
Certificates for /usr/local/etc/openssl/cert.pem: Old.
Certificates for /Users/tumf/.rvm/usr/ssl/cert.pem: Old.
Certificates for /etc/openssl/cert.pem: Old

対処法

$ rvm osx-ssl-certs update all
3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?