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

IOS certificate confusion #142

Open
mattwoberts opened this issue Nov 30, 2015 · 1 comment
Open

IOS certificate confusion #142

mattwoberts opened this issue Nov 30, 2015 · 1 comment

Comments

@mattwoberts
Copy link

Hi guys. First - apologies if this is a user error, which I suspect it may be...

I can't for the life of me, get this working with APNS, and it's driving me mad. I'm getting an error code 8 from APNS - which is an invalid token, which would suggest that my .pem files are wrong.

I've generated a developement certificate for APS notifications, and then exported that to a .p12. I ran the openssl commands to convert them to .pem files, and I've specified those in the pushd config. I've also configured the gateway and feedback URLs to use the sandbox.

Could you suggest any next steps I can take to look at this? I found an article (http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1) that suggests using telnet to verify connection to the sandbox - this doesn't work for me - here's the error:

$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert MyCert.pem -key MyKey.pem

Enter pass phrase for MyKey.pem:
error setting private key
8457:error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-59/src/crypto/x509/x509_cmp.c:406:

Any help appreciated - I'm totally stuck on this :(

@munchios1
Copy link

I have same issue. and I stuck too.

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