Skip to content

Fix ForceUTF8Encoding to only apply to certain AttributeTypes - #109159

Closed
vcsjones wants to merge 2 commits into
dotnet:mainfrom
vcsjones:fix-109156
Closed

Fix ForceUTF8Encoding to only apply to certain AttributeTypes#109159
vcsjones wants to merge 2 commits into
dotnet:mainfrom
vcsjones:fix-109156

Conversation

@vcsjones

Copy link
Copy Markdown
Member

Reported in #109156.

According to https://learn.microsoft.com/en-us/windows/win32/api/certenroll/ne-certenroll-x500nameflags, the ForceUTF8Encoding option only applies to certain attributes.

This changes the managed encoder to match the behavior of Windows.

Closes #109156

@vcsjones

Copy link
Copy Markdown
Member Author

Closing for now, this is more complicated than expected. Will re-visit this, but it wasn't a 15 minute task like I expected.

@vcsjones vcsjones closed this Oct 24, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

X500DistinguishedName with ForceUTF8Encoding causes Country encoded as UTF8String on .NET 8 Linux

2 participants