# Push notification certificate and profile creation guide

### App needs to create the push notification certificate with Apple app store connect.

1. Login to the Apple Developer portal (<https://developer.apple.com/account>). Once logged in select "Certificates, Identifiers & Profiles".&#x20;

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2FlABu3gYvG284hnB3tGG7%2Fimage-9.png?alt=media&#x26;token=f57d0896-0bf8-4797-b578-813b0a1dcb98" alt=""><figcaption></figcaption></figure>

2. Click on the link labelled "Identifiers" section

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2FChfRWWuHRpa7VFkGlOiY%2Fimage-2.png?alt=media&#x26;token=52213d79-c848-4ebe-9287-bfcf62cf3435" alt=""><figcaption></figcaption></figure>

3. Click on the App ID you created previously for your app.

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2FG4JtXTGXFY4kNXSVI94d%2Fimage-3.png?alt=media&#x26;token=e88fd5b7-f634-4e02-9b6e-318782d55bba" alt=""><figcaption></figcaption></figure>

4. On the screen that appears, scroll down to Push Notifications, select the check mark and click on "Configure"

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2FnF90JKHT27PsmOIU93bD%2Fimage-4.png?alt=media&#x26;token=5303f1a5-0891-41c1-91c2-a0a640095020" alt=""><figcaption></figcaption></figure>

5. Under Production SSL Certificate, click on the "Create Certificate" button.

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2FllCcz4Ne8bLjAdB2Dtrv%2Fimage-5.png?alt=media&#x26;token=25e8f3d0-5139-4b34-a84b-f3fab150c7ec" alt=""><figcaption></figcaption></figure>

6. Click on the "Choose File" button and select the CSR (Certificate Signing Request) file you have downloaded, to enable the "Continue" button

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2FG7XC93oNjJLX07bBr8cr%2FScreenshot%202023-08-16%20at%2010.57.27%20AM.png?alt=media&#x26;token=abbd0883-b76b-4c00-9456-18f49e5cc717" alt=""><figcaption></figcaption></figure>

7. Now click on the "Continue" which is enabled at this point.

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2Fr6li4ybajt0wTD5bsvtK%2Fimage-6.png?alt=media&#x26;token=8058f2e7-139b-40c3-a759-7c5eb3cf3da4" alt=""><figcaption></figcaption></figure>

8. After this you will get to this page and the certificate would be created. Now click on the "Download" button to download and save your newly created certificate. After that find the file and double click on it to add to your Keychain Access.

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2F1CPya47ac3bbii7gvoXf%2FScreenshot%202023-08-16%20at%2018.05.53.png?alt=media&#x26;token=a06c2c83-af67-44d2-9985-5beb7cad837c" alt=""><figcaption></figcaption></figure>

### How to Export a Push Notification Certificate as a .p12 file

1. In Keychain Access, select the certificate entry and right-click on it to select "Export." (Note: All certificates you have installed will be in the "login" keychain (Label 1) under the category "My Certificates" (Label 2).)

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2FDz2u5tCJGSX4VVMZ7Iqb%2Fimage-7.png?alt=media&#x26;token=62b836f1-b717-4ee8-9564-0fbaeb670435" alt=""><figcaption><p>Format is set to "Personal Information Exchange (.p12)" and click on "Save" to save it to your machine</p></figcaption></figure>

2. Select your certificate (NOTE: in order to make sure it's valid you should have an expand icon and after attaching the certificate you should see a private key). Click on "Save" to save it to your machine. When asked for a password, leave it blank or set password and click on "OK". (NOTE: if you forget the password or are unsure whether it's correct or not just repeat the process from step 1; if you do however export it with a password please note it down).

<figure><img src="https://1580202697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnflmu4IuhMaoATtr28AI%2Fuploads%2FDSOzCO48QqJKTNDP1VfO%2Fimage-8.png?alt=media&#x26;token=5753eb44-2b01-411e-b794-0570788fdd67" alt=""><figcaption></figcaption></figure>
