ICertificateResolver.ResolveCertificate(String) Method

Definition

Locates an X509Certificate2 given its thumbprint.

public:
 System::Security::Cryptography::X509Certificates::X509Certificate2 ^ ResolveCertificate(System::String ^ thumbprint);
public System.Security.Cryptography.X509Certificates.X509Certificate2 ResolveCertificate (string thumbprint);
public System.Security.Cryptography.X509Certificates.X509Certificate2? ResolveCertificate (string thumbprint);
abstract member ResolveCertificate : string -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Function ResolveCertificate (thumbprint As String) As X509Certificate2

Parameters

thumbprint
String

The thumbprint (as a hex string) of the certificate to resolve.

Returns

The resolved X509Certificate2, or null if the certificate cannot be found.

Applies to