【发布时间】:2013-12-06 05:43:39
【问题描述】:
我在运行 bundle install 时收到此错误:
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'.
但是,它只发生在我的一个项目中,而且似乎只发生在我身上。另外,我可以通过运行 bundle update 来解决它,我没有收到该错误,然后我可以开始运行。
我配置错误的项目(仅在我的机器上)中是否存在未跟踪的内容?
【问题讨论】:
-
试试这个:
gem update --system,然后如果你在 MAC 上试试这个:rvm osx-ssl-certs update -
还要检查您的系统是否有正确的日期/时间。 (例如,如果它是一个虚拟机,如果你让主机休眠,它可能会浪费时间。)
标签: ruby-on-rails ruby git ssl github