Skip to content

Consider deprecating or annotating a few S.S.C.X509Certificates members #47977

@vcsjones

Description

@vcsjones

There are a few APIs in System.Security.Cryptography.X509Certificates that might be worth obsoleting, or some variation of {Un}SupportedOSPlatformAttribute on them.

  • X509Certificate2.FriendlyName - Consider marking this [SupportedOSPlatformAttribute("windows")]. This API returns an empty string on non-Windows, and throws when being set on non-Windows.
  • X509Certificate2.Archived - Consider marking this [SupportedOSPlatformAttribute("windows")]. This API returns false on non-Windows, and throws when being set on non-Windows.
  • X509Certificate.Import - Consider deprecating or obsoleting this. All overloads for this API are going to throw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions