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 Unknown #29

Open
lefreeman42 opened this issue Feb 18, 2011 · 2 comments
Open

Certificate Unknown #29

lefreeman42 opened this issue Feb 18, 2011 · 2 comments

Comments

@lefreeman42
Copy link

Hi,

I try to send a push notification to an iphone, but I have a problem with the certificate I think.
When I launch rake apn:notifications:deliver --trace
I obtain:
** Invoke apn:notifications:deliver (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute apn:notifications:deliver
SSL_connect returned=1 errno=0 state=SSLv3 read finished A: sslv3 alert certificate unknown

When I convert the certificate with this command :
openssl pkcs12 -in Certificates.p12 -out apple_push_notification_development.pem -nodes -clcerts
It asks me to enter an Import Password.

After that I obtain this result: MAC verified OK

So I think it's ok. But actually no. I don't know why it doesn't work. Do you have any idea ?

Here is the ruby version I'm using: ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
I'm working on an Ubuntu Server version 9.10

Thanks.

Christophe

P.S: This is the first time I use Ruby.

@a0n
Copy link

a0n commented Jun 9, 2011

i am having the same issue right now

@lefreeman42
Copy link
Author

My problem was finally the certificate. I just made a new and everything was fine. Check you forgot nothing in the process to get and convert your certificate.

Best regards,

Christophe

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