16
16

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.

Mountain Lion+rubyでopensslエラー

Posted at

エラーメッセージ

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

環境

ruby 1.9.3p194
Mac OSX 10.8

原因

証明書がない.

⚡ ruby -ropenssl -e 'p OpenSSL::X509::DEFAULT_CERT_FILE'
"/usr/local/etc/openssl/cert.pem"

対処

上記の場所("/usr/local/etc/openssl/cert.pem")に証明書をダウンロードして置いてやる.

cd /usr/local/etc/openssl && wget http://curl.haxx.se/ca/cacert.pem && mv cacert.pem cert.pem
16
16
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
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?