Skip to content

crypto/x509: DN OU ordering #29040

Description

@rikkuness

What version of Go are you using (go version)?

$ go version
go version go.1.11.1 linux/amd

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
linux amd64

What did you do?

When getting the subject of a certificate through cert.Subject.String(), where the DN has multiple OU's, the OU's are in a backwards order and joined with a '+'

https://play.golang.org/p/hKtL6TEeln5

What did you expect to see?

CN=Example User,OU=Upper,OU=Lower,O=My Org,C=GB

What did you see instead?

CN=Example User,OU=Lower+OU=Upper,O=My Org,C=GB

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions