bundle install で SSL verify error
雑学。いずれ埋もれるメモ。
budle init してできる Gemfile には次の記述がある。
source "https://rubygems.org"
この状態で bundle install すると、SSL の検証が失敗してしまう。
$ bundle install --path .bundle Fetching gem metadata from https://rubygems.org/........ Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/builder-3.0.0.gem) An error occured while installing builder (3.0.0), and Bundler cannot continue. Make sure that `gem install builder -v '3.0.0'` succeeds before bundling.
ググれば山ほど出てくるのが「エラーになったけど http に替えたらいいよ」という事例。
原因とか経緯を知るには github の issue を読んでから、大本営発表を読むことなんでしょうか。
2012年8月現在においてこんなエラーに出くわしてるのは環境が古いから、という感じ。
それぞれアップデートしましょうね、という結論らしい。