Skip to content

Importing a single SerializedCert with CERT_KEY_PROV_INFO_PROP_ID attempts to delete the key on Dispose. #33543

@soyang2828

Description

@soyang2828

The typical code would look like. And upon out of scope of using, the Network Service permission will
be deleted.

using (X509Certificate2 cert = new X509Certificate2(bytes))
{
thumbprint = cert.Thumbprint;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions