apple push notifications - In the context of APNs, does p8 and p12 mean token and certificate based authentication respectively? -


from know, pkcs 8 used store private keys, , pkcs 12 used store certificates.

and communicate apns, need authentication tokens or certificates.

https://developer.apple.com/library/content/documentation/networkinginternet/conceptual/remotenotificationspg/communicatingwithapns.html

does mean .p8 files keys used create tokens, , .p12 files used certificates?

yes. apple push notification authentication key (p8 format) used generate server side tokens. not need certificate here. (this used when have multiple apps under same account key same apps unlike certificates). using same connection, provider can talk multiple apps using mandatory 'authorization' header. every post request gets validated henceforth apns cloud using header.

p12 format exist generating certificates authenticating provider against particular appid. here every individual app, separate certificate required. not need 'authorization' header here connection authenticated.

i hope helps.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -