$ ruby -ropenssl -e 'p OpenSSL::X509::DEFAULT_CERT_FILE'
"/usr/local/etc/openssl/cert.pem"
$ cd /usr/local/etc/openssl
$ ls
misc/ openssl.cnf
$ wget 'http://curl.haxx.se/ca/cacert.pem' -O cert.pem
--2012-08-15 22:25:49-- http://curl.haxx.se/ca/cacert.pem
curl.haxx.se をDNSに問いあわせています... 80.67.6.50
curl.haxx.se|80.67.6.50|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 246780 (241K) [text/plain]
`cert.pem' に保存中
100%[=======================================================================================================================================================>] 246,780 97.4KB/s 時間 2.5s
2012-08-15 22:25:53 (97.4 KB/s) - `cert.pem' へ保存完了 [246780/246780]
Created
August 15, 2012 13:29
-
-
Save tomohiro/3360141 to your computer and use it in GitHub Desktop.
Ruby 1.9.3p194 で OpenSSL エラーが出る場合の対処
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment