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

PKIX module changes certificate DNs. #57395

Closed
Steve973 opened this issue Dec 19, 2022 · 2 comments
Closed

PKIX module changes certificate DNs. #57395

Steve973 opened this issue Dec 19, 2022 · 2 comments

Comments

@Steve973
Copy link

func (n Name) ToRDNSequence() (ret RDNSequence) {

If I create an X509 certificate, and then pull out the subject DN, it looks like this:

C = XX, ST = Confusion, L = Somewhere, OU = first, OU = a002, OU = third, OU = b004, O = example, CN = chunkbox

Note that there are multiple values for OrganizationalUnit, but they are separate RDNs.

When I print what is returned from Caddy, which uses the go PKIX module, it looks like this:

CN=chunkbox,OU=first+OU=a002+OU=third+OU=b004,O=example,L=Somewhere,ST=Confusion,C=XX

The subject DN from the certificate is not equivalent to the subject DN that I get back from the PKIX module.

@seankhliao
Copy link
Member

Duplicate of #27401

@seankhliao seankhliao marked this as a duplicate of #27401 Dec 19, 2022
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2022
@Steve973
Copy link
Author

@seankhliao I realized that after filing this one. That ticket is from back in 2018. Are there plans to implement some kind of fix?

@golang golang locked and limited conversation to collaborators Dec 19, 2023
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