Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jan 9, 2026

Backport of #122997 to release/10.0

/cc @vcsjones

Customer Impact

  • Customer reported
  • Found internally

Customer reported in #122925. Customers that use X509Certificate2.CreateFromPem may receive an error when importing an EC-DSA on Windows, preventing them from importing the key.

This is because the key import mechanism only observed the key usages on the certificate. It did not observe the usages on the key itself.

Regression

  • Yes
  • No

This regressed in .NET 10 from #115249. That pull request fixed a similar issue with EC-DH, but caused the EC-DSA scenario to regress.

Testing

New tests were added to cover all new scenarios. Existing tests were in place to ensure known scenarios continued to work.

Risk

Low. Between the previous certificate-based test variance and the new key-based test variance, both sides of the cert+key pairing are covered.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

@bartonjs bartonjs added the Servicing-consider Issue for next servicing release review label Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Security Servicing-consider Issue for next servicing release review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants