apple push notifications - iOS - How to check wheather pem file is valid or not? -


i have created development , production pem files. have followed steps:

1) developer.apple.com : appids section check bundle id supports development ssl certificate if no create certificate (which supports apns)

2) open key chain

3) right click on our certificate , export certificate.

4) .p12 file here : : hope_apns.p12

5) open console(terminal) , run following command (use created .p12 file here input) openssl pkcs12 -in apns-dev-cert.p12 -out apns-dev-cert.pem -nodes -clcerts

6) .pem file same. (like hope_apns.pem)

developement pem file working fine. there in production pem file. when set production pem file , send push notification console. won't push on device.

that's old thread looking same answer , hope solution someone... worked me.

you can test pem key using following command, should hang if successful until press enter:

openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert pnpush.pem -key pnpush.pem

the above tests pem key in sandbox mode. production mode, use following command:

openssl s_client -connect gateway.push.apple.com:2195 -cert pnpush.pem -key pnpush.pem

thanks craig @ https://www.pubnub.com/knowledge-base/discussion/234/how-do-i-test-my-pem-key


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -