SSLMate / go-pkcs12

Go library for encoding and decoding PKCS#12 files

Home Page:https://pkg.go.dev/software.sslmate.com/src/go-pkcs12

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pkcs12: error reading P12 data: asn1: syntax error: indefinite length found (not DER)

subhanimshaik opened this issue · comments

When parsing the p12 file, hitting the above error, the same file can be decoded through web.
Any input as to what can be causing the issue.

Per the package documentation:

Note that only DER-encoded PKCS#12 files are supported, even though PKCS#12 allows BER encoding. This is because encoding/asn1 only supports DER.

but it is not problem to write smth for pks12 ber support

is there any lib that support BER? many files I have, they are in DER and BER format, how to fix? how to convert BER in DER and than read with the package? does anyone knows?

is there any lib that support BER? many files I have, they are in DER and BER format, how to fix? how to convert BER in DER and than read with the package? does anyone knows?

No, I tried to find it, but there is no such libs