When you create a .pem file without phrase specify -nodes
To Create .pem file without phrase
openssl pkcs12 -nocerts -out Pro_Key.pem -in App.p12 -nodes
To Create .pem file with phrase
openssl pkcs12 -nocerts -out Pro_Key.pem -in App.p12
If you have a .pem file with password you can get rid of its password for PyAPNs using the following
openssl rsa -in haspassword.pem -out nopassword.pem
Refer
for make certificates and other configurations.
Some Python library for interacting with the Apple Push Notification service (APNs)