1. Log in to iPhone Developer Connection Portal and click App IDs
2. Create an App ID without using wildcards. Wildcard IDs cannot be used with push notification services. For example, our iPhone app ID looks like this: AB123346CD.com.serverdensity.iphone
3. Click "Configure" next to the App ID and press the button Produce Push Notification License. Follow the steps guided by the "Wizard" to generate a signature and upload it, and finally download the generated license. This step is also covered in Apple documentation.
4. Introduce your aps_developer_identity.cer into Keychain by double-clicking the .cer file.
5. Start the Keychain Assistant on your Mac, and then select the Certificates category in the login keychain. You will see an expandable option "Apple Development Push Services"
6. Expand this option and right-click on “Apple Development Push Services” > Export “Apple Development Push Services ID123”. Save as apns-dev-cert.p12 file.
7. These files need to be converted to PEM format via terminal command:
Help
1
2
3 |
openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem
-in apns-dev-cert.p12 openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12
|
For the second statement, an rsa password must be set for it. If you want to remove the password, either do not set or execute it during export/conversion:
Help
1
|
openssl rsa -in apns-dev-key.pem -out unencrypted.pem
|
1 |
cat apns-dev-cert.pem unencrypted.pem > apns-dev.pem
|
9. To do a final test on the completed certificate, connect it with SSL.
Development status server address gateway.sandbox.push.apple.com 2195
Help
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/678032.htmlTechArticle1. Log in to the iPhone Developer Connection Portal and click App IDs 2. Create an App ID without using wildcards. Wildcard IDs cannot be used with push notification services. For example, our iPhone...