Closed gngeorgiev closed 7 years ago
@gngeorgiev thanks for logging. I haven't seen this before, so are you able to share more info about your environment and your cert.
.p12
?.p12
certificates.@gngeorgiev did you manage to get any further on this?
@sideshow Yeah, I did.
Turns out my certificates were indeed a bit weird, since regenerating them fixed the problems. However, I needed the old ones to work, since I need to be able to handle arbitrary use cases. In the end I ended up using the openssl
command line tool, passing certificates in stdin and getting the decoded certificate and private key from stdout. I don't think there is anything you can do except document this case.
Thanks @gngeorgiev I have added a separate issue to add more docs around this. https://github.com/sideshow/apns2/issues/54
Hello,
I am trying to use the apns2 module but when I try to load the p12 file I get the following error
I was able to convert the file to
.pem
using the command line openssl, and it worked but this is not an ideal solution, I need to be able to use the p12 file directly or convert it to pem at runtime. Sadly the openssl bindings do not offer this functionality as of now. Any suggestions?