Development aps
- Open keychain access from Mac
- Select certificate assistant from keychain access menu and select Request a certificate from certificate authority
- Give you email address, and select save to disk and press continue.
- Give a name and save it
- Login to you apple developer portal
- Select Certificates, Identifiers & Profiles
- Select All option under Certificate menu
- Select plus button on the right top
- Select
Apple Push Notification service SSL (Sandbox)
for development certificates and press continue button - Select App ID from the drop down menu and press continue
- Again press continue button from the
About Creating a Certificate Signing Request (CSR)
page - Upload your previously created certificate from keychain access under choose file button and press continue
- Download the file and press done
- Double click on your downloaded file and it will add to your keycahin access
- Open your keychain access and right click on your push certificate and choose Export: option and save it as .p12 file
- Open terminal in you mac
- Move your current directory to the directory where your .p12 file is saved
- Execute the command from current directory
openssl pkcs12 -in BlueShiftPush.p12 -out BlueShiftPush.pem -nodes -clcerts
where BlueShiftPush.p12 is your saved .p12 file and BlueShiftPush.pem is your destination .pem file.
Production aps
You can follow the same steps done during Development aps, except step 9. You have to select Apple Push Notification service SSL (Sandbox & Production)