Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ForceUTF8Encoding to only apply to certain AttributeTypes #109159

Closed
wants to merge 2 commits into from

Conversation

vcsjones
Copy link
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
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