我在 Windows 8 中安装了 Rails 4.1.8,其 ruby 版本为“ruby 2.1.5p273(2014-11-13 修订版 48405)[i386-mingw32]”。我按照本教程在 Rails 上安装 ruby-” http://installfest。 railsbridge.org/installfest/windows “。现在,每当我运行任何 Rails 应用程序时,我都会收到此错误 -
Fetching source index from https://rubygems.org/
Retrying source fetch due to error (2/3):Bundler::Fetcher::CertificateFailureError
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying source fetch due to error (3/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Run Code Online (Sandbox Code Playgroud)
我要把 https 改成 http 吗?安全吗?
正如错误消息所说:
有关 OpenSSL 证书的信息,请参阅 bit.ly/ruby-ssl。
bit.ly/ruby-ssl 指向http://railsapps.github.io/openssl-certificate-verify-failed.html,其中包含对所发生情况的解释以及如何修复它的建议。
更改https为httpinsource 'http://rubygems.org'是建议的解决方法之一。
底部有一个特定于 Windows 的解决方案,建议下载RailsInstaller 的 cacert.pem
| 归档时间: |
|
| 查看次数: |
10105 次 |
| 最近记录: |