Respect ForceUTF8Encoding when encoding an X500DN
authorKevin Jones <kevin@vcsjones.com>
Fri, 22 Jul 2022 23:14:44 +0000 (19:14 -0400)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 23:14:44 +0000 (19:14 -0400)
commit509731776dc5d47daa63725f543d0a871595f73d
tree08bc7d2f2f2cb69fc6d1881fc15806c3be231c78
parent7eaa6d1e607720a7aae30331b8b7e89c1501fa83
Respect ForceUTF8Encoding when encoding an X500DN

The managed implementation did not respect the ForceUTF8Encoding flag when encoding a distinguished name. This changes the encoding to start respecting the flag, as Windows does.
src/libraries/System.Security.Cryptography.X509Certificates/tests/NameTests.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/X500NameEncoder.cs