Compartir a través de


CertificateDescription.FromStoreWithDistinguishedName Method

Definition

Creates a certificate description from a certificate distinguished name (such as CN=name) and store location (Certificate Manager on Windows, for instance).

public static Microsoft.Identity.Web.CertificateDescription FromStoreWithDistinguishedName (string certificateDistinguishedName, System.Security.Cryptography.X509Certificates.StoreLocation certificateStoreLocation = System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, System.Security.Cryptography.X509Certificates.StoreName certificateStoreName = System.Security.Cryptography.X509Certificates.StoreName.My);
static member FromStoreWithDistinguishedName : string * System.Security.Cryptography.X509Certificates.StoreLocation * System.Security.Cryptography.X509Certificates.StoreName -> Microsoft.Identity.Web.CertificateDescription
Public Shared Function FromStoreWithDistinguishedName (certificateDistinguishedName As String, Optional certificateStoreLocation As StoreLocation = System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, Optional certificateStoreName As StoreName = System.Security.Cryptography.X509Certificates.StoreName.My) As CertificateDescription

Parameters

certificateDistinguishedName
String

Certificate distinguished named.

certificateStoreLocation
StoreLocation

Store location where to find the certificate.

certificateStoreName
StoreName

Store name where to find the certificate.

Returns

A certificate description.

Applies to