djacobs / PyAPNs

Python library for interacting with the Apple Push Notification service (APNs)
http://pypi.python.org/pypi/apns/
MIT License
1.22k stars 376 forks source link

OpenSSQL Error #87

Closed koslib closed 9 years ago

koslib commented 9 years ago

Hello,

When i try to send a test push message, i get the following openssql error: ssl.SSLError: [Errno 336265225] _ssl.c:351: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib Exception ssl.SSLError: SSLError(336265225, '_ssl.c:351: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib') in <bound method GatewayConnection.del of <apns.GatewayConnection object at 0x10d16ccd0>> ignored

and then exits without sending the push.

Has this happened to anyone else? What's going wrong with this?

Thanks in advance

koslib commented 9 years ago

After some investigation, i found out that this error is the result of a corrupted or faulty .pem certificate. In my case, the .pem file did not contain the .p12, so it could not be verified and sent.