1. Prepare the certificate request file
- Open the Keychain Access program in your Apple utility
- Select Keychain Access, Certificate Assistant, request a certificate from a certification authority
- Enter the e-mail address, the common noun casually named, here named APNs
- Save the generated apns.certsigningrequest file to a local disk by selecting store to disk
- At this point, in the Keychain Access program's key (keys) category should be able to find the APNS private key, right-click Export "APNS" to export the private key to P12 file, save will prompt for a password, input and generate APNS.P12 file
2. Prepare the app ID and SSL certificate
- Login to the Apple Developer Portal and click into iOS Provisioning Portal->app IDs
- Click on the new app ID, fill in the name and bundle Identifier of your application
- Click Configure to select the Enable for Apple Push Notification Service
- Click the Configure button for development push SSL Certificate (Production push SSL Certificate follow the same steps)
- Click Continue, select the apns.certsigningrequest you just generated click Generate
- Wait a few seconds to complete the certificate generation, click Continue, and download the generated certificate Aps_development.cer
3. Create the P12 file required by the push server
using OpenSSL generated under the MAC command line: CSR certification signing Request file (Apns.certsigningrequest), private key (APNS.P12), SSL certificate (aps_development.cer)
- in Aps_development.cer-inform DER- out Aps_development.pem--nocerts- out Apns_ Noenc.pem-in-export-in"aps_development" - out Aps_development.p12