[Fixed]-Iphone push notifications passphrase issue (pyAPns)

25👍

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)

0👍

Try to use

apns = APNs(use_sandbox=True, cert_file='XYZCert.pem', key_file='XYZKey.pem')

where you specify both the certificate and the private key.

Leave a comment