Apple provides certificate files (CER files). To use these certificates with the Adobe PhoneGap Build service and the Push Notification plugin, you'll need to package them with their private keys in a Personal Information Exchange file (P12 file). Use the instructions below to package your CER file into a P12 file on a Mac.
- Open the Keychain Access application from the Applications > Utilities folder.
- Import the certificate file (CER file) by selecting File > Import and locating your CER file provided by Apple.
- Select the Certificates category and locate the certificate that you just imported.
- Expand the arrow next to the certificate to show the key.
- Select the key.
- Select File > Export Items...
- Name the export and ensure that the file format is Personal Information Exchange (.p12).
- Click Save.
- Provide a password to protect the export. This password will need to be provided to services that will use the certificate.
- Click OK.
- Provide your Mac password to enable the export.
- Click Allow
- The P12 file should now exist in the location you selected in step 7.