Getting Safari Certs
We need a .p12 cert file to manage your push notifications from our systems, but we know the process can be a little confusing. Here's our step-by-step guide on how to get a .p12 file.
You'll need a few things before getting started:
Creating a p12 file can be a little confusing the first time, as you need to use often unnoticed pieces of software on your computer, as well as the iOS Developer web interface (which has got better in recent years).
We have divided the process into the following three steps to make it easier:
1. Create a ".certSigningRequest" (CSR) file
2. Create the ".cer" file in your Apple Developer Account
- Log on to https://developer.apple.com
- Click "Certificates, Identifiers & Profiles"
- In the "Identifiers" section at the left-hand panel, click "Website Push IDs"
- Click the "Add" (+) button at the top-right corner of the main panel
- Write a description for your Website Push ID, an ID (e.g. com.domainname.appname) and click Continue
- Click Register
- Click Done
- In the "Certificates" section at the top of the left-hand panel, click "Production"
- Click the "Add" (+) button at the top-right of the main panel
- In the main panel, under Production, Choose "Website Push ID Certificate" and click Continue
- Select your Website Push ID and click Continue
- Click Continue
- Click “Choose File” & find the CSR file you have just created from your hard drive
- Click Continue and wait for the file to be processed
- Click Download to get the file, and then click on the Done button once the download has finished
3. Install the .cer and generate the .p12
- Find the .cer file you have just downloaded and double-click on it. If the certificate hasn't automatically been installed you will see the following window (otherwise, skip the next two steps):
- Make sure the drop-down is set to "login"
- Click Add Open up KeyChain Access again
- Find the two profiles you created in Step 1
- You should now be able to expand the “private key” profile, which should show the certificate you just added
- Select only these two items (not the public key), by holding SHIFT and clicking both items
- Right click and click “Export 2 items…” from the pop-up
- In the next window, make sure the file format is a “.p12” and choose a filename and destination on your hard drive
- Click Save
- Finally, you will be prompted to set a password but both input boxes should be left in blank
- Click OK
NOTE: You may be asked for the computer administrator password at this stage (possibly twice as there are two files to export). In that case, enter the password and click OK
- You should now find a .p12 file available in the chosen location of your hard drive