简体   繁体   English

证书验证失败Heroku Ruby on Rails 3.2.1 Ruby 1.9.2p290

[英]Certificate verify failed Heroku Ruby on Rails 3.2.1 Ruby 1.9.2p290

In heroku logs : 在heroku日志中:

/usr/lib/ruby/1.9.1/net/http.rb:678:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
    from /usr/lib/ruby/1.9.1/net/http.rb:678:in `block in connect'
    from /usr/lib/ruby/1.9.1/timeout.rb:44:in `timeout'
    from /usr/lib/ruby/1.9.1/timeout.rb:89:in `timeout'
    from /usr/lib/ruby/1.9.1/net/http.rb:678:in `connect'
    from /usr/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
    from /usr/lib/ruby/1.9.1/net/http.rb:626:in `start'
    from /usr/local/heroku/lib/heroku/client.rb:409:in `read_logs'
    from /usr/local/heroku/lib/heroku/command/logs.rb:31:in `index'
    from /usr/local/heroku/lib/heroku/command.rb:135:in `run'
    from /usr/local/heroku/lib/heroku/cli.rb:9:in `start'
    from /usr/bin/heroku:30:in `<main>'

I haven't the foggiest idea what to do here. 我不知道该怎么做。 Using Ruby 1.9.2 and Rails 3.2.1 on Ubuntu 11.10. 在Ubuntu 11.10上使用Ruby 1.9.2和Rails 3.2.1。 Have tried updating my certificate to latest from here but it did not seem to make a difference. 尝试将证书从此处更新为最新版本,但这似乎没有什么不同。

Also tried adding the following code from here and pushing back to heroku but that did not work either. 还尝试从此处添加以下代码并将其推回heroku,但这也不起作用。

I hit the same. 我打一样。

I did the following to resolve: 我做了以下解决:

~ $ heroku version
2.21.1
~ $ gem uninstall heroku --version 2.21.1
Successfully uninstalled heroku-2.21.1
~ $ heroku version
heroku-gem/2.20.1
~ $ heroku logs --app myapp
2012-03-02T04:12:22+00:00 heroku[nginx]: 24.4.137.156 - - [02/Mar/2012:04:12:22 +0000] "GET /assets/layout/nav_bar-0fecc02...

This problem has been posted as an issue on Heroku's github account. 此问题已作为问题发布在Heroku的github帐户上。 They are working on it and have a quick fix: 他们正在研究并快速解决:

https://github.com/heroku/heroku/issues/245 https://github.com/heroku/heroku/issues/245

[sudo] gem install certified

add to gemfile : gem 'certified' 添加到gemfile:gem'certified gem 'certified'

bundle install

added /certs to /lib from https://github.com/stevegraham/certified to be sure https://github.com/stevegraham/certified/lib添加了/certs以确保

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM