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
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 envOutputWhat 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=GBWhat did you see instead?
CN=Example User,OU=Lower+OU=Upper,O=My Org,C=GB