Skip to content

Add pkcs12 BER support #48210

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

Closed
KaymeKaydex opened this issue Sep 6, 2021 · 1 comment
Closed

Add pkcs12 BER support #48210

KaymeKaydex opened this issue Sep 6, 2021 · 1 comment

Comments

@KaymeKaydex
Copy link

KaymeKaydex commented Sep 6, 2021

// ASN.1 is a syntax for specifying abstract objects and BER, DER, PER, XER etc
// are different encoding formats for those objects. Here, we'll be dealing
// with DER, the Distinguished Encoding Rules. DER is used in X.509 because
// it's fast to parse and, unlike BER, has a unique encoding for every object.
// When calculating hashes over objects, it's important that the resulting
// bytes be the same at both ends and DER removes this margin of error.
//
// ASN.1 is very complex and this package doesn't attempt to implement
// everything by any means.

But BER still important format
And now i have an error : error reading P12 data: asn1: syntax error: indefinite length found (not DER)

@KaymeKaydex KaymeKaydex changed the title add ber support Add pkcs12 BER support Sep 6, 2021
@ALTree
Copy link
Member

ALTree commented Sep 6, 2021

It looks like there's no plan to add BER support, see #12267 and #14145.

Closing here as a dup.

@ALTree ALTree closed this as completed Sep 6, 2021
@golang golang locked and limited conversation to collaborators Sep 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants