SSL error while implementing Apple Push Notification

后端 未结 5 1977
广开言路
广开言路 2021-01-04 19:10

I am trying to implement Apple Push Notification using python and django.

i am using following library to implement it

http://leepa.github.com/django-iphone-

5条回答
  •  别那么骄傲
    2021-01-04 19:15

    In my case, what worked for me is like below:

    Use the full path like

    apns = APNs(use_sandbox=True, cert_file='/usr/local/etc/cert.pem', key_file='/usr/local/etc/key.pem')
    

    rather than

    apns = APNs(use_sandbox=True, cert_file='cert.pem', key_file='key.pem')
    

提交回复
热议问题