crypto/x509/pkix: Name type does preserve order of multi valued fields. #45882
Labels
FrozenDueToAge
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 I create a certificate with multiple elements for
OrganizationalUnit
and parse it, the order is not preserved in recent versions of go (1.15 and 1.16). It seems to me in newer versions of go the length of the individual values changes the ordering as if the values are now sorted by length. This was not the case for go < 1.15Example Code:
What did you expect to see?
I expect the order of multiple values in the certificate subject to stay consistent across go versions.
What did you see instead?
The text was updated successfully, but these errors were encountered: