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

Issues parsing -x509 with multiple domain components (DC) #300

Open
da-kami opened this issue Nov 21, 2024 · 0 comments
Open

Issues parsing -x509 with multiple domain components (DC) #300

da-kami opened this issue Nov 21, 2024 · 0 comments

Comments

@da-kami
Copy link

da-kami commented Nov 21, 2024

I was not aware of this myself, but apparently -x509 certificates can have multiple domain component fields set in the issuer.

If I am not mistaken the RCF mentions this, see: https://datatracker.ietf.org/doc/html/rfc5280#section-7.3:

Each domainComponent attribute represents a single label.

This has been reported as issue with other certificate management tools:
cert-manager/cert-manager#4424

I came across a client who is using a certificate that specifies multiple domain components in the issuer.
The client is already using this certificate with a firewall solution in production, I cannot easily tell them to replace the cert.
This forced me to create a fork and adapt the implementation of DistinguishedName because a HashMap won't allow storing multiple DC items.

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