-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
certificaton error when send push notification #64
Comments
@gb0519 this guide should be helpful for you how to generate correct signing files: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use the following codes to send push notification with certification.
These codes are from "base usage" of the readme file (removed the key part)
The certification I generated and downloaded from developer.apple.com is cer format,
if I use it directly as
client_cert='mycert.cer',
Then I will get error: ssl.SSLError: [SSL] PEM lib (_ssl.c:3900)
If I convert it to pem with code:
openssl x509 -inform der -in mycert.cer -out mycert.pem
Then change code to
client_cert='mycert.pem',
Then I will get error: ssl.SSLError: [SSL] PEM lib (_ssl.c:3921)
The full traceback:
What should I do to get the right certification to make it work?
The text was updated successfully, but these errors were encountered: