Send Apple Notification Service A Message With Python
The solution to my problem was that I was using a password for the private key.
Since Keychain Access explicitly asks for a password, I thought it was necessary. It is not.
Everything worked fine when I left the password blank.
Just try with https://github.com/simonwhitaker/PyAPNs. Make sure you have configured you certificates correctly.
Refer Raywenderlich