Reputation: 726
Salaam,
I am referring to this question to setup a linux provider.
I think the difference between the main tutorial and the Linux version has to do with how the certificates are installed/stored/used..etc
These are the steps I have done with their status:
cmd1: openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert apns-dev- cert.pem -key privateKey.pem
cmd2: openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert ck.pem -debug -showcerts -CAfile server-ca-cert.pem
Upvotes: 0
Views: 3984
Reputation: 726
my target is easyapns, but I was testing with simpepush.php provided with the first tutorial. suprinsingly, the script worked from the command line but not from the browser !
now i'm trying easyapns from browser and it's working.
More suprisingly, I just had to use the ck.pem from the mac machine, uploaded to the linux box
I am unable to explain why...
Upvotes: 0
Reputation: 486
Looks like you are using easyapns. Maybe in the sql database you aren't in sandbox mode? If you have permission denied try to chmod the php file to 777
Upvotes: 0