I have followed : tutorial-part-12 .It works in development certificate but it do not work in production certificate.
I already changed sandbox to ssl://gateway.push.apple.com:2195 in my php.
I created production.pem with this steps.
$ openssl x509 -in aps_developer_identity.cer -inform der
-out PushChatCert.pem
$ openssl pkcs12 -nocerts -out PushChatKey.pem -in PushChatKey.p12
Enter Import Password:
MAC verified OK
Enter PEM pass phrase:
Verifying – Enter PEM pass phrase:
$ cat PushChatCert.pem PushChatKey.pem > ck.pem
and I uploade my ck.pem to my shared host.
It is nothing errors but it does not push notification.
in my php ,it said : Connected to APNS Message successfully delivered
You have to build and sign your app using the ad-hoc distribution certificate rather than with the developer certificate when using the “live” servers rather than the sandbox servers.