【发布时间】:2017-01-23 13:37:23
【问题描述】:
我已经进行了几个小时的升级,终于真正陷入困境。
当我收到典型的Bundler::Fetcher::CertificateFailureError 时,这一切都开始了。经过多次修补,我想我已经将所有东西都升级到了最新版本
$ gem -v
2.6.9
$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
$ bundle -v
Bundler version 1.14.2
在某些时候,我用
更改了我的 gem 源$ gem sources --remove http://rubygems.org
$ gem sources --add http://rubygems.org
我也将我的 Gemfile 更改为 http
当我运行 `bundle install' 时,我收到以下错误(注意,我必须手动断开 bit.ly url 才能发布错误内容)
Fetching source index from https://rails-assets.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rails-assets.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 http://bit. ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rails-assets.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 http://bit. ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (4/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rails-assets.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 http://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://rails-assets.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 http://bit. ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
enter code here
所以我又回到了我开始的地方。附带说明一下,当我尝试 https: 到我的 gem sources 时,我现在遇到了另一个错误,但在我处理完这个问题后,作为一个不同的问题可能会更好。
【问题讨论】:
标签: ruby ssl rubygems ruby-on-rails-5