Closed gorros closed 8 years ago
@gorros, if you were able to solve the issue yourself, I would be really glad to know what the solution is.
@gorros @UrK I'm getting a similar issue. Would be great to hear how you resolved it. Thanks
@robosung I have not resolved it. I stopped using the library. ;)
@robosung
As I remember now, we switched to https://github.com/jleclanche/django-push-notifications, but again it does not support certificates with passphrases. Nevertheless we decided stick to later one and do not use certificates with passphrases. But unfortunately I don't remember what was the final argument.
@UrK @gorros thank you for the update.
@gorros cast the passphrase to str (might be unicode). that fixed it for me.
See comment directly above.
.encode() solve problem for me.
e.g.
rsa_private_key = load_privatekey( OpenSSL.crypto.FILETYPE_PEM, private_key, secret.encode())
when secret is string
Hi,
I am trying to add APNS service with passphrase, but unfortunatly it results in following error
I assume that something is wrong with this method:
Because even if passphrase is string it wil raise TypeError
Looking forward for reply, Thanks.