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

Failed on loading certificates "asn1: structure error: tags don't match" #3

Closed
luza opened this issue Nov 26, 2019 · 1 comment
Closed

Comments

@luza
Copy link

luza commented Nov 26, 2019

Got an error

asn1: structure error: tags don't match (16 vs {class:0 tag:13 length:45 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} certificate @2

on calling passkit.LoadSigningInformationFromFiles(). Certificate files are valid, I use them for building passes in PHP.

What could that be?

@luza
Copy link
Author

luza commented Nov 26, 2019

OK, solved.

For those who experienced the same: that happens when you try to read .pem file instead of .crt.

@luza luza closed this as completed Nov 26, 2019
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

1 participant