How to create certificates for iOS apps and push notifications
The process for creating certificates for iOS apps and services can be a bit overwhelming. In this post, I've tried to detail the process as accurately I can so that others can do it with relative ease.
Step by step
Head over to the Apple Developers control panel and log in.
In the menu on the left, select "Certificates, IDs & Profiles".
In the top left corner, click the "+" button.
Choose a certificate type. These are the main certificates you'll need to create.
iOS App Development - This certificate allows you to sign test versions of your app. Using iTunes you can drag & drop your development certificate-signed app onto your device.
Apple Push Notification service SSL (Sandbox) - This certificate is required to send push notifications to apps installed using the iOS App Development certificate.
App Store and Ad Hoc - Use this certificate for signing your app for deployment to the App Store and TestFlight (if you've chosen to use it).
Apple Push Notification service SSL (Sandbox & Production) - Use this certificate to send push notifications to apps signed using the App Store and Ad Hoc certificate. Although this certificate is called Sandbox & Production, I've had difficulty sending push notifications to development devices using it.
You'll now be asked to provide a CSR file. If you don't have one, check out How to create a certificate signing request where I explain the process.
After you've uploaded the CSR file, you'll be give the chance to download your certificate. Download it, and save the .cer to your disk. If you have a Mac, store the certificate in your keychain using the keychain access tool.