alvinbaena / passkit

Create Apple Wallet Passes in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

luza opened this issue · comments

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?

OK, solved.

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