ruby – 创建新Rails项目的问题:“你有可能遇到一个中间人攻击”

我以前从未见过这个,而谷歌搜索这个确切的消息却没有任何结果. Stack Overflow是

run  bundle install
Fetching source index from https://rubygems.org/
Resolving dependencies...
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/ssl-certs. To connect without using SSL,edit your Gemfile sources and change 'https'   to 'http'.

我按照这个页面上的说明,空手而归:

http://www.beginnerruby.com/rails-troubleshooting/fixing-opensslbundler-issue-for-rails-on-debian/

有人有什么想法吗?

Mac OSX Lion使用Rubymine.

解决方法

我跟着 these instructions没有明显的结果.阅读评论,有人问终端是否重新开放.所以,我关闭/打开了终端.这解决了我的问题.我正在使用SNowLeopard.

$brew update
$brew install openssl
$brew link openssl --force
$brew install curl-ca-bundle
$brew tap raggi/ale
$brew install openssl-osx-ca

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...