我使用octokit gem与github API进行交互。因此,当我尝试通过pry控制台进行简单测试时,如下所示:
require 'octokit'
=> true
Octokit.user "ricardobond"控制台带给我的是:
Faraday::Error::ConnectionFailed: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed from /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `connect'我在用:
OSX 10.8.4
RVM 1.19.1
Ruby2.0.0p0 (2013-02-24修订版39474) x86_64-darwin12.3.0
Rubygems 2.0.3
OpenSSL 1.0.1e 2013年2月11日(通过自制安装)
关于如何纠正这个错误,有什么建议吗?
https://stackoverflow.com/questions/17478457
复制相似问题