1. Create a new app ID
2. Create a push.certsigningrequest in the keychain
3. Generate a Certificate (push) with app ID and push.certsigningrequest , then export the Certificate build PUSH.P12 in the keychain
4. Generate a provisioning profile with app ID
5. Open the terminal:
$ OpenSSL x509-in aps_development.cer-inform der-outform pem-out Pushchatcert.pem
$ OpenSSL pkcs12-nocerts-out pushchatkey.pem-in PUSH.P12
$ cat Pushchatcert.pem Pushchatkey.pem > Ck.pem
To test whether the certificate is working, execute the following command: (press CTRL + C to close the connection)
$ telnet gateway.sandbox.push.apple.com 2195
$ OpenSSL s_client-connect gateway.sandbox.push.apple.com:2195 -cert pushchatcert.pem-key PushChatKey.pem
Finally, just pass your generated CK.PEM file to the server developer.
Resources:
http://zxs19861202.iteye.com/blog/1532460
http://www.tairan.com/archives/194
Jelly Learning: The build of the iOS push certificate (password settings in the process, remember the password)