Rails 3上的OpenSSL :: SSL :: SSLError

时间:2011-11-30 14:58:38

标签: ruby-on-rails ruby macos openssl

我收到了这个错误:

OpenSSL::SSL::SSLError
SSL_set_tlsext_host_name:

/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `connect'
...

我在Mac OS X上工作。我已经尝试重新安装rvm,openssl(包括macports和brew),xcode和不同的ruby版本,但没有任何效果。


/Users/Martin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `connect'
/Users/Martin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `block in connect'
/Users/Martin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
/Users/Martin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
/Users/Martin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `connect'
/Users/Martin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
/Users/Martin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:744:in `start'
/Users/Martin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:1284:in `request'
rest-client (1.6.7) lib/restclient/net_http_ext.rb:51:in `request'
oauth (0.4.5) lib/oauth/consumer.rb:164:in `request'
oauth (0.4.5) lib/oauth/consumer.rb:197:in `token_request'
oauth (0.4.5) lib/oauth/consumer.rb:139:in `get_request_token'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-oauth/lib/omniauth/strategies/oauth.rb:31:in `request_phase'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-core/lib/omniauth/strategy.rb:58:in `request_call'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-core/lib/omniauth/strategy.rb:41:in `call!'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-core/lib/omniauth/strategy.rb:30:in `call'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-core/lib/omniauth/strategy.rb:44:in `call!'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-core/lib/omniauth/strategy.rb:30:in `call'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-core/lib/omniauth/strategy.rb:44:in `call!'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-core/lib/omniauth/strategy.rb:30:in `call'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-core/lib/omniauth/strategy.rb:44:in `call!'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/omniauth-af14e6ea9a40/oa-core/lib/omniauth/strategy.rb:30:in `call'
hoptoad_notifier (2.4.11) lib/hoptoad_notifier/rack.rb:27:in `call'
mongoid (2.2.4) lib/rack/mongoid/middleware/identity_map.rb:33:in `block in call'
mongoid (2.2.4) lib/mongoid.rb:130:in `unit_of_work'
mongoid (2.2.4) lib/rack/mongoid/middleware/identity_map.rb:33:in `call'
sass (3.1.10) lib/sass/plugin/rack.rb:54:in `call'
/Users/Martin/.rvm/gems/ruby-1.9.3-p0/bundler/gems/client_side_validations-46f8fc087704/lib/client_side_validations/middleware.rb:16:in `call'
warden (1.0.6) lib/warden/manager.rb:35:in `block in call'

1 个答案:

答案 0 :(得分:3)

我找到了它的原因。我使用Mac Postgres安装程序修改了某种方式openssl和gems构建了它。我删除了Postgres用brew安装它,现在一切都好了。