Links may not function; however, this content may be relevant to outdated versions of the product.
Creating an APNs certificate for push notifications
Generate a password-protected APNs certificate file with the .p12 extension that is used for push notifications. You can use the .p12 APNs certificate file in the iOS certificate set when you build your iOS mobile app in Pega Platform™.
Prerequisites
Before you create an APNs certificate for push notifications, ensure that you meet the following prerequisites:
- You are enrolled in the Apple Developer Program. For more information about available enrollment options, see Choosing a membership.
- You have a Mac OS X system.
Creating an APNs certificate for push notifications
To create an APNs certificate for push notifications, complete the following steps:
- Sign in to the Apple Developer Portal and click Identifiers > App IDs.
- Find the App ID that was created in the Create an App ID for the app article of this tutorial:
com.turnkeytrust.mobile
.Search iOS App IDs screen - View the App ID details.
- Click Edit.ID screen
- In the Services list, go to the Push Notifications section.
- In the Production section, click Create Certificate.Push Notifications screen
- The next page displays information about how to create a Certificate Signing Request (CSR).
On a computer with the Mac OS X operating system, run the Keychain Access application.
Click Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority.Keychain Access menu option - On the next page, enter:
- Your email address.
- The generated certificate name. It appears in the Keychain application, the next time you open it.
- Click Saved to disk as the request type.
- Click Save and download the generated file to your local computer.Certificate Information screen
- Sign in to the Apple Developer Portal again.
- Click Choose File to upload the *.certificateSigningRequest file.Generate Your Certificate screen
- Click Continue.
- On the confirmation page, click Download to download a generated *.cer file. Make sure to download the file to the same Mac OS X computer where you have previously generated your .csr file.Your Certificate is Ready screen
- Double-click the file to import it to your local keychain.
- Open the Keychain application.
- Find the new certificate that was created. The private key has the same name as was provided in the Common Name field on the CSR generation page.
- Right-click the certificate.
- Click ‘Export “Apple Push Services: …’.
- From the list, click p12 as file type.
- Provide a new password for the certificate.Export Profile screen