iOS App - Generate .p8 file for APN Firebase Cloud Messaging not .cert

2 years ago
15

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 the certificate or identifiers. 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.

How to use Apple's new .p8 certificate for APNs in firebase console
How to configure Push Notification for an iOS app using APNs key (.p8)
Firebase p8: Invalid APN Certificate. Check the certificate in Settings
How to use APNs Auth Key .p8 certificate in Firebase console

Loading comments...