Ruby on rails 无法验证SSL证书

Ruby on rails 无法验证SSL证书,ruby-on-rails,ssl,openssl,rubygems,Ruby On Rails,Ssl,Openssl,Rubygems,我的环境是WSL Ubuntu 16.04,Ruby 1.8.7(2017-12-15 patchlevel 377)[x86_64-linux],Rails 2.3.10,openssl 1.0.2t。突然,从昨天开始,我无法捆绑安装。我已经使用这个系统一年多了,没有任何问题。运行bundle安装时,出现以下错误: Resolving dependencies....... Could not verify the SSL certificate for https:/

我的环境是WSL Ubuntu 16.04,Ruby 1.8.7(2017-12-15 patchlevel 377)[x86_64-linux],Rails 2.3.10,openssl 1.0.2t。突然,从昨天开始,我无法捆绑安装。我已经使用这个系统一年多了,没有任何问题。运行bundle安装时,出现以下错误:

        Resolving dependencies.......
    Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/nokogiri-1.10.10.gemspec.rz.
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://railsapps.github.io/openssl-certificate-verify-failed.html. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
我试着改成http,但没用。我已使用更新了ca证书

sudo apt-get install ca-certificates
但那没用。我按照一篇文章的建议删除了Gemfile.lock,但仍然没有任何帮助

有什么想法吗?我几乎尝试了我读到的所有东西,但都没有成功。顺便说一句,错误消息中的链接说在Ubuntu 12.04之后不会发生错误,所以这没有帮助


谢谢你的帮助

您是否尝试过
gem update--system
这已被证明可以解决过去的类似问题问题问题可能是windows系统上的一些防病毒软件。有些人在做SSL拦截,也就是说他们是中间人。我使用slimgems,它是最新版本。@Steffen此问题也发生在我的Rackspace Ubuntu 16.04服务器上。@RGuy这可能与您的问题无关,但。。。slimgems已经有近10年没有更新了;rails 2.3在7年前达到了EOL,ruby 1.8.7在6年多前达到了EOL。现在是升级所有内容的时候了。您已经尝试了
gem update--system
这已被证明可以解决过去的类似问题。问题可能是windows系统上的一些防病毒软件。有些人在做SSL拦截,也就是说他们是中间人。我使用slimgems,它是最新版本。@Steffen此问题也发生在我的Rackspace Ubuntu 16.04服务器上。@RGuy这可能与您的问题无关,但。。。slimgems已经有近10年没有更新了;rails 2.3在7年前达到了EOL,ruby 1.8.7在6年多前达到了EOL。是时候升级一切了