I am working with Pushy Notification where I need to register with the p8 file. So how can I create that p8 file from developer account?

- 846
- 1
- 8
- 26
-
https://developer.apple.com/account/ios/authkey/ – RJiryes Jun 19 '17 at 13:56
-
Hopefully your customers aren't offended by all that pushing. – Tristan Newman Feb 16 '23 at 21:09
4 Answers
May 2021 - The p8
The issue that I had was I couldn't find the way to create the .p8
file and all methods gave me .cer
file instead.
Head to your Apple developer account
Go to the keys section and click on the plus button (or click here):
⚠️ It is very important to select the
keys
section and NOT thecertificate
oridentifiers
. otherwise you will get the.cer
file at last ♂️
⚠️ Note that since it is very powerful certificate, it is very limited and you can not have much of these. So if you already created one, you will face something like this image and you should use that file or just revoke the old one.
- Download the
.p8
file and secure it somewhere.

- 95,414
- 31
- 268
- 278
Follow these steps:
Generate an APNs Auth Key
Open the APNs Auth Key page in your Developer Center and click the + button to create a new APNs Auth Key.
In the next page, select Apple Push Notification Authentication Key (Sandbox & Production) and click Continue at the bottom of the page.
Apple will then generate a .p8
key file containing your APNs Auth Key.
Download the .p8
key file to your computer and save it for later. Also, be sure to write down the Key ID somewhere, as you'll need it later when connecting to APNs.
Send Push Notifications
Ref: APNS (Configure push notifications)
Important: Save a back up of your key in a secure place. It will not be presented again and cannot be retrieved later.

- 77,632
- 48
- 245
- 261
-
Thanks for the updated. The APNs and auth key option doesn't appear in my developer account. Is there any special requirement for that? – Kushal Maniyar Jun 21 '17 at 06:48
-
@KushalManiyar - It can be generated once and won't be visible (removes APNS Auth key options) again. Here is reference to your query (http://help.apple.com/xcode/mac/current/#/dev11b059073?sub=dev1eb5dfe65). If you have generated it previously, then it won't be visible to you again. – Krunal Jun 21 '17 at 09:39
-
Is it possible to revoke the key and generate new one? In my account it shows, it has exceeded the limits. I want to revoke it and generate a new one. Is this possible? Also will this affect existing apps? – Vidhya Sri Mar 05 '18 at 08:29
-
@yaali - Raise a new question with full description of your problem, I'll surely help you to find out solution to your problem, with valid evidence – Krunal Mar 05 '18 at 09:30
-
@Krunal I have tried to configure Apple APN with Firebase FCM, but I keep getting an error. Could you please help me with an answer https://stackoverflow.com/questions/50292269 – bibscy May 11 '18 at 18:50
-
How do you recommend storing the .p8 file? I assume you don't want it just sitting there plaintext – paul jerman Feb 11 '19 at 23:16
For the new current Apple Developer site these are the steps:
Certificates, Identifiers & Profiles > Keys > Click "+" > Check Apple Push Notifications service (APNs)
Choose a name, then register it. It will give you an option to download the p8 file.

- 308
- 2
- 7
First login Apple developer a/c. Go to Keys option, click + button
Than on next page, enter valid Name, check Push notification option and click, click continue, click download button, It will download .p8 file.

- 13,982
- 14
- 97
- 173