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

Certificate issues which aren't found on other libraries #41

Open
ivanyv opened this issue Feb 14, 2012 · 5 comments
Open

Certificate issues which aren't found on other libraries #41

ivanyv opened this issue Feb 14, 2012 · 5 comments

Comments

@ivanyv
Copy link

ivanyv commented Feb 14, 2012

Hi,

Suddenly one of my apps that uses apn_on_rails stopped sending notifications.

APN::App.send_notifications fails with:

SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate expired
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate expired
      from ~/.rbenv/versions/ree-1.8.7-2011.03/gems/apn_on_rails-0.5.1/lib/apn_on_rails/libs/connection.rb:59:in `connect'

The cert is valid until 2013, and it works fine if I use something like node-apn. I don't see anything obvious in the source code and I know little of SSL, so I'm at a loss.

@sushmasatish
Copy link

Hi,
I am also encountering the similar issue with apn_on_rails(0.5.1).

SSL_connect returned=1 errno=0 state=SSLv3 read finished A: sslv3 alert certificate revoked
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read finished A: sslv3 alert certificate revoked
from /apn_on_rails-0.5.1/lib/apn_on_rails/libs/connection.rb:59:in connect' from /apn_on_rails-0.5.1/lib/apn_on_rails/libs/connection.rb:59:inopen'
from /apn_on_rails-0.5.1/lib/apn_on_rails/libs/connection.rb:23:in open_for_delivery' from /apn_on_rails-0.5.1/lib/apn_on_rails/app/models/apn/app.rb:48:insend_notifications_for_cert'
from /apn_on_rails-0.5.1/lib/apn_on_rails/app/models/apn/app.rb:36:in `send_notifications'

@treeder
Copy link

treeder commented Jul 3, 2012

Did either of you figure out what was causing this issue?

@rmatesic
Copy link

rmatesic commented Oct 4, 2012

I am receiving the same error too

<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate revoked>

Was anyone able to figure this one out? Some push notifications do go out, but every now and then they stop working.

@kayzee
Copy link

kayzee commented Jan 3, 2013

Having the same issue. The best doc I could find is http://railsapps.github.com/openssl-certificate-verify-failed.html

My server is running on Ubuntu 10.04, so I plan on creating a new dev server with Ubuntu 12.04 to see if that resolves the problem, but otherwise I'm stumped as well.

@britg
Copy link

britg commented Aug 27, 2013

Did yall ever find a solution to this problem? I just started encountering it randomly as well.

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

6 participants