bundle install時にエラー

ruby 1.9.2p290
rails 3.2.3
でサーバ上にデプロイしようとしたときに、
bundle installで以下のようなエラーが出現

Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks!

調べてみたら、どうやらopensslとRubyの互換性等の問題らしい。
なので、取り急ぎこのエラーをクリアするためにはGemfileの

source 'https://rubygems.org'

source 'http://rubygems.org'
に変更

すればよいとのこと。


変更して再度実行したら動きました。
日本語のサイトの説明が少なかったので備考録も含めメモしとく。


参考
https://github.com/carlhuda/bundler/issues/1776