Skip to content
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

Loading .p12 certificate: ans1: indefinite length found (not DER) #2

Open
gngeorgiev opened this issue Oct 14, 2016 · 1 comment
Open

Comments

@gngeorgiev
Copy link

Hello,

I am trying to use the apns2 module but when I try to load the p12 file I get the following error

ans1: indefinite length found (not DER)

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?

@sger
Copy link
Owner

sger commented Oct 14, 2016

Hello,

I'm using the following link as example for the .p12 and .pem files https://www.raywenderlich.com/123862/push-notifications-tutorial I have no idea about the error you getting except the fact that belongs to this https://golang.org/src/encoding/asn1/asn1.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants