I think it is a little ridiculous but it's hard to find information about what is this file. I've found a lot info how to get this Apple Push Notification Authentication Key
, but i also want to know exactly what is it.
Here is some info i have found:
Benefits:
- No need to re-generate the push certificate every year;
- One auth key can be used for all your apps;
- Same for sandbox and Production.
From Apple Docs:
Token-based provider connection trust: A provider using the HTTP/2-based API can use JSON web tokens (JWT) to provide validation credentials for connection with APNs. In this scheme, you provision a public key to be retained by Apple, and a private key which you retain and protect. Your providers then use your private key to generate and sign JWT provider authentication tokens. Each of your push notification requests must include a provider authentication token.
You can use a single, token-based connection between a provider and APNs can to send push notification requests to all the apps whose bundle IDs are listed in your online developer account.
Every push notification request results in an HTTP/2 response from APNs, returning details on success or failure to your provider. Further check Token-Based Provider-to-APNs Trust section.
Questions:
- What is actually the .p8 file?
- What programm can open it? (Keychain didn't work for me)
- Is there a way to convert it to
.pem
or.p12
? - A little flow-out question in order to not create a new topic: Does the server side operate with .p8 the same way as .p12 or it should be additional tools added?