-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
crypto/x509: no support for BitString #69463
Comments
Are you able to share with us the X509 certificate you are parsing? |
Im not able to share the cert unfortunately. Its under RDNSequence, If that helps. |
RFC 5280 permits the use of following attributes in an RDNSequence:
id-at-uniqueIdentifier is not mentioned in the spec. CC @FiloSottile @rolandshoemaker @golang/security |
Also
It certainly is not optimal but i cant change the cert. |
Is this certificate produced or used by some widely used software? The crypto/x509 package explicitly implements a restricted set of X.509 features, necessary for supporting publicly trusted certificates. (per the package documentation, "There is minimal support for features outside of these profiles, as the primary goal of the package is to provide compatibility with the publicly trusted TLS certificate ecosystem and its policies and constraints.") Without relatively widespread usage of this feature, especially in publicly trusted certificates, we're unlikely to add support for it. |
This specific cert is only used in my organisation with a couple of thousand users. Its not publicly available and therefore not widespread. |
Go version
1.23.1
Output of
go env
in your module/workspace:What did you do?
Read x509 cert containing a BitString
What did you see happen?
unsupported string type: 3 BitString
What did you expect to see?
Support for bitstring https://go.dev/src/crypto/x509/parser.go line 60
The text was updated successfully, but these errors were encountered: