Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL errors verifying Prowl's certificate #3

Open
VxJasonxV opened this issue Jan 20, 2015 · 3 comments
Open

SSL errors verifying Prowl's certificate #3

VxJasonxV opened this issue Jan 20, 2015 · 3 comments

Comments

@VxJasonxV
Copy link

I tried to use this gem to send some messages via Prowl, but doing so led to an SSL error both locally as well as on Heroku:

2015-01-20T11:36:13.990929+00:00 heroku[scheduler.6882]: State changed from starting to up
2015-01-20T11:36:15.960697+00:00 app[scheduler.6882]:   from /app/vendor/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:852:in `start'
2015-01-20T11:36:15.960672+00:00 app[scheduler.6882]: /app/vendor/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:920:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
2015-01-20T11:36:15.960698+00:00 app[scheduler.6882]:   from /app/vendor/bundle/ruby/2.1.0/gems/prowler-1.3.1/lib/prowler/application.rb:173:in `perform_request'
2015-01-20T11:36:15.960695+00:00 app[scheduler.6882]:   from /app/vendor/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
2015-01-20T11:36:15.960694+00:00 app[scheduler.6882]:   from /app/vendor/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:920:in `connect'
2015-01-20T11:36:15.960705+00:00 app[scheduler.6882]:   from notifier.rb:13:in `<main>'
2015-01-20T11:36:15.960699+00:00 app[scheduler.6882]:   from /app/vendor/bundle/ruby/2.1.0/gems/prowler-1.3.1/lib/prowler/application.rb:159:in `perform_post'
2015-01-20T11:36:15.960689+00:00 app[scheduler.6882]:   from /app/vendor/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
2015-01-20T11:36:15.960703+00:00 app[scheduler.6882]:   from /app/vendor/bundle/ruby/2.1.0/gems/prowler-1.3.1/lib/prowler/application.rb:106:in `perform'
2015-01-20T11:36:15.960692+00:00 app[scheduler.6882]:   from /app/vendor/ruby-2.1.4/lib/ruby/2.1.0/timeout.rb:101:in `call'
2015-01-20T11:36:15.960690+00:00 app[scheduler.6882]:   from /app/vendor/ruby-2.1.4/lib/ruby/2.1.0/timeout.rb:91:in `block in timeout'
2015-01-20T11:36:15.960704+00:00 app[scheduler.6882]:   from /app/vendor/bundle/ruby/2.1.0/gems/prowler-1.3.1/lib/prowler/application.rb:69:in `notify'
2015-01-20T11:36:15.960693+00:00 app[scheduler.6882]:   from /app/vendor/ruby-2.1.4/lib/ruby/2.1.0/timeout.rb:101:in `timeout'
2015-01-20T11:36:16.815052+00:00 heroku[scheduler.6882]: Process exited with status 1
2015-01-20T11:36:16.831644+00:00 heroku[scheduler.6882]: State changed from up to complete

I even tried passing verify_certificate: false into the initialization parameters (

attr_accessor :api_key, :provider_key, :application, :verify_certificate
), but that didn't seem to make a difference.

Is this because trusted roots are required to be implemented? (

# Location of the root certificates file.
# Default: #{Rails.root}/config/cacert.pem
def root_certificates
if defined?(Rails.root)
@root_certificates ||= File.expand_path('config/cacert.pem', Rails.root)
elsif defined?(RAILS_ROOT)
@root_certificates ||= File.expand_path('config/cacert.pem', RAILS_ROOT)
else
@root_certificates ||= File.expand_path('../config/cacert.pem', __FILE__)
end
end
)

I'm not using this in a rails app. I could easily find a certificate bundle and create it at that path, but why is this a requirement?

@HeikoBornholdt
Copy link

I've the same problem. Do you found a solution?

@VxJasonxV
Copy link
Author

When this gem failed, I switched to ruby-prowl instead.

@HeikoBornholdt
Copy link

Okay, I’ve switched to prowly.

On 01 Sep 2015, at 01:14, Jason Salaz [email protected] wrote:

When this gem failed, I switched to ruby-prowl https://github.com/augustl/ruby-prowl instead.


Reply to this email directly or view it on GitHub #3 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants