cdp*_*mer 13 ruby git ssl ruby-on-rails github
我跑的时候收到这个错误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'.
Run Code Online (Sandbox Code Playgroud)
然而,它只发生在我的一个项目中,似乎只发生在我身上.此外,我可以通过运行绕过它bundle update,在那里我没有得到那个错误,我可以在那之后起床.
项目中是否存在未被跟踪的东西(仅在我的机器上)我配置错误?
Mic*_*ich 17
我在使用ruby 2.3.1的Mac OS X Yosemite上遇到了这个问题.我通过下载解决了这一问题http://curl.haxx.se/ca/cacert.pem到
/usr/local/etc/openssl/
并将此行添加export SSL_CERT_FILE=/usr/local/etc/openssl/cacert.pem到.bash_profile
感谢无法在OSX上使用RVM运行Ruby 2.2.3,但很难谷歌正确答案,因此添加到此页面.
Mic*_*orn 11
我在OS X 10.9.5上的解决方案是sudo rvm osx-ssl-certs update all.
资料来源:http://jacopretorius.net/2013/10/could-not-verify-the-ssl-certificate-for-rubygems.html