GarettRogers / appengine-apns-gcm

A unified push service for iPhone and Android push notifications that runs on Google App Engine (GAE).
112 stars 24 forks source link

ssl error with APNS? #8

Open smunson opened 10 years ago

smunson commented 10 years ago

Hi - Thank you for for developing this. I'm new to push notifications and have been using this to as a framework to learn, but I'm getting an error: SSLError: [Errno 8] _ssl.c:529: EOF occurred in violation of protocol from broadcastApnsMessage(self, convertToApnsMessage(self, msg)).

I've built my certificates as: highlight cert & key in keychain access, export two items to a p12 file, convert to a .pem file, using openssl pkcs12 -in ./prod.p12 -out prod.pem -nodes -clcerts and then copying the certs and keys (including the BEGIN and END lines) to /about/config.

Any guidance on how to debug this?

Thanks, Sean

blixt commented 10 years ago

@smunson Did you ever get around this?

smunson commented 10 years ago

Apologies for not updating the post -- I ignored the problem for a week, came back to it, and it started working and has been working since. I'm not sure if it just took a while for my certs to show up in Apple's system or if I was trying to test on a day when the APNS sandbox was having some problems.