Simple bash script that automates the steps taken to create, test and prepare the signed server certificate for the Apple Push Notification Service.
Outputs a ready to use PushCertKey pem file for in your production environemnt. The creation of the requires files need to be done using OSX. The script itself can be run from linux.
- Create iOS App (iOS Dev Center)
- Create a private/public key pair (iOS Dev Center and keychain Access).
- Create a certificate signing request (CSR), signed with your private key (keychain Access).
- Submit the CSR to Apple and download a signed certificate.
- Move the files (.CertSigningRequest, .cer and .p12) into the same folder
Run the script in the folder where you saved the required files
- Documentation by Apple Registering, Scheduling, and Handling User Notifications
- A great illustrated (although a bit old) tutorial by Matthijs Hollemans and Ali Hafizji on APNS and the signing procedureApple Push Notification Services in iOS 6 Tutorial