crypto/x509: DN OU ordering #29040
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat 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
The text was updated successfully, but these errors were encountered: