Skip to content

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

Open
@da-kami

Description

@da-kami

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions