Closed thomashrabe closed 7 years ago
openssl pkcs12 -in cert.p12 -out cert.pem -clcerts -nokeys
openssl pkcs12 -in key.p12 -out key.pem -nocerts
openssl rsa -in key.pem -out keyNoPasswd.pem
cat keyNoPasswd.pem > mergedPushCertificate.pem
cat cert.pem >> mergedPushCertificate.pem
Use mergedPushCertificate.pem
for both cert and key parameters of the main script. Probably would be worth adding this into some kind of documentation...
Hi, I know this might be due to lack of better knowledge, but I seem not to be able to get this running. Can you please help me setting up the certificates?
I exported the Apple push certificate and the private key into
cert.p12
andkey.p12
respectively on my mac. Then I ranand uploaded them to server
Here's my modified
apns-send.py
certificate_file = '/path/to/apnsCerts/cert.pem' key_file = '/path/to/apnsCerts/key.p12'
I try
./apns-send.py -p fc0112d3936f738d9d4c197c50dbf80304ab13fca4ab19d539ecacf65ce58b34 -m 'Hello World'
yet it fails with
I really appreciate any help / suggestions where it could fail. Thanks heaps in advance!