KnuffApp / Knuff

The debug application for Apple Push Notification Service (APNs).
MIT License
5.24k stars 436 forks source link

Choose pem instead of an identity #73

Closed buttifabio closed 7 years ago

buttifabio commented 7 years ago

It would be nice to have the possibility to send push notifications only having a pem. Currently if i add a pem to my keychain it doesn't shows up as an identity in the choose dialog.

blommegard commented 7 years ago

Are you sure that the .pem includes the private key as well?

buttifabio commented 7 years ago

I generated it automatically with fastlane/pem so no, the private key is not included.

I've just seen this paragraph in fastlane/pem, so probably i have to do like that to import p12 with private key.

Why does Knuff need the private key? To send a push notification my server just need a pem certificate with only the public key; am I wrong?

Thank you

blommegard commented 7 years ago

No, you still need the private key when sending you messages from a server.