bundle install:Gem :: RemoteFetcher :: FetchError:SSL:...证书验证失败

3
在Windows系统中,当升级到rails 4.1.0.beta1版本时,运行bundle install命令会出现与gem minitest相关的错误。
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.r
    ubygems.org/gems/minitest-5.2.1.gem)

之前发生过类似错误,我们通常尝试安装旧版本来绕过此问题。但是这次 minitest 5.2.0 也遇到了同样的错误。这个错误的原因是什么,如何修复呢?


5
请在你的 Gemfile 文件中将 source 'https://rubygems.org' 修改为 source 'http://rubygems.org' - bjhaid
这是一个带有详细信息的问题报告,位于 https://github.com/rubygems/rubygems/issues/319。 - user938363
1个回答

8

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接