iOS: p12 Generate Certificates (2024)

An iOS Push Certificate or Token is required for push notification delivery to all iOS mobile apps.

  • An iOS mobile app. (This is not for websites / web push).
  • A Paid Apple Developer Account with Admin Role.
  • OneSignal Account.
  • A Mac computer with Xcode 11+.
  • Your Xcode project should have the Push Notification capability added. Otherwise your project may not be shown in the Apple Developer Center.

If you are renewing a certificate or your app already has an existing App ID or Provisioning Profile, skip to Step 3. Generate a Push Certificate.

If your App does not have an existing App ID or Provisioning Profile setup, then login to your Paid Apple Developer Account, navigate to Certificates, Identifiers & Profiles->Identifiers, and select the Blue + button.

iOS: p12 Generate Certificates (1)

Select App IDs and Continue.

iOS: p12 Generate Certificates (2)

Select App and Continue.

iOS: p12 Generate Certificates (3)

Provide a "Description" and your Explicit "Bundle ID".

πŸ“˜

Bundle ID

This must be the same as the "Bundle Identifier" you set for your project in Xcode.

iOS: p12 Generate Certificates (4)

iOS: p12 Generate Certificates (5)

Press Continue and on the next page, select Register.

If you are renewing a certificate, skip to step 3.2.3 Select Push Notification Certificate.

3.2.1 Request a Certificate From a Certificate Authority

Open the Keychain Access App on your macOS system. It may be located in Applications > Utilities > Keychain Access.

Select Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority...

iOS: p12 Generate Certificates (6)

Next, select the Saved to disk option and enter your information in the required fields. Then, click Continue.

This creates a certification request file that will be used later.

iOS: p12 Generate Certificates (7)

3.2.2 Add Capabilities

In your Apple Developer Account under Certificates, IDs & Profiles > Identifiers, select Identifiers.

iOS: p12 Generate Certificates (8)

Find and select your Identifier to enable Push Notifications, but do not click Configure.

If you do not see your Identifier, follow Step 2. Provisioning.

iOS: p12 Generate Certificates (9)

3.2.3 Select Push Notification Certificate

Go to Certificates and create a new certificate by clicking the blue + (plus) button.

Under Services, select Apple Push Notification service SSL (Sandbox & Production) and click Continue.

  • The certificate will be applicable to both Sandbox and Production environments, so you do not need a separate key for each one.

iOS: p12 Generate Certificates (10)

3.2.4 Select your App

Choose your App ID with matching Bundle ID from the App ID pop-up menu, and click Continue.

iOS: p12 Generate Certificates (11)

3.2.5 Upload your Certificate Signing Request

Click Choose File.., select the CertSigningRequest file you saved in Step 3.2.1, click Open, and then click Continue.

iOS: p12 Generate Certificates (12)

Click Download to save the certificate to your computer.

iOS: p12 Generate Certificates (13)

3.2.6 Creating a Private Key

Open the .cer file you downloaded in the last step by double-clicking on it in Finder.

iOS: p12 Generate Certificates (14)

After a few seconds, the Keychain Access program should open. Select Login > My Certificates, then right-click on your Apple Push Services key in the list and select Export "Apple Push Services...".

iOS: p12 Generate Certificates (15)

Give the file a unique name using the .p12 extension, and click Save. You will have an option to protect the file with a password. If you add a password, you need to enter this same password on OneSignal.

In the OneSignal dashboard, select your app, then go to Settings.

Under Native App Platforms, click Apple iOS.

iOS: p12 Generate Certificates (16)

Select the .p12 file you exported (along with a password, if you added one) and click Save.

Note: If you used the OneSignal Provisionator tool to create a .p12 file, a password was generated for you and is located next to the Download button.

iOS: p12 Generate Certificates (17)

πŸ‘

Done!

You should be finished generating your iOS Push Certificate and uploading it to OneSignal.

Usually required for Cordova/Ionic and GoNative.

Skip if selected "Automatically manage signing" in Xcode.

iOS: p12 Generate Certificates (18)

If you did not select "Automatically manage signing", then follow these steps:

Go to your Apple Developer Account > Certificates, Identifiers & Profiles > Profiles.

iOS: p12 Generate Certificates (19)

Next, find any that are for your app and remove them if they do not have App Groups and Push Notifications in Enabled Capabilities:

iOS: p12 Generate Certificates (20)

Create a Profile by pressing the "+" button.

iOS: p12 Generate Certificates (21)

Select the type of profile you need to create and press Continue.

iOS: p12 Generate Certificates (22)

Search for your App ID; if you do not see your App ID, check the Create Your Identifier step above.

Then, press Continue.

iOS: p12 Generate Certificates (23)

Select the Development or Distribution Certificate to associate with the Profile. Then, click Continue.

iOS: p12 Generate Certificates (24)

Name your Provisioning Profile.

🚧

Best Practices

When creating a new profile, make sure to enter a unique name in the "Provisioning Profile Name:" field.

For example, if you are creating an Ad-Hoc Provisioning Profile to test push notifications with a Production Push Certificate .p12 file, use the format AppName_AdHoc so you know the app and type of profile that it is.

Select Generate.

iOS: p12 Generate Certificates (25)

On the last page, Download your profile.

Re-sync your Developer Account in Xcode by going to Xcode > Preferences... then click on the "View Details..." button. Then, click the refresh button on the bottom left of the popup. See Apple's documentation for more detailed instructions.

Make sure you pick your new provisioning profile from Build Settings>Code Signing>Provisioning Profile in Xcode.

Updated 5 months ago

iOS: p12 Generate Certificates (2024)
Top Articles
What Are Credit Card Points? What Are They Worth? | LendingTree
How to wind a skein of yarn into a ball (with no equipment)
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 6357

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.