CertificateResolver.ResolveCertificate(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Locates an X509Certificate2 given its thumbprint.
public:
virtual System::Security::Cryptography::X509Certificates::X509Certificate2 ^ ResolveCertificate(System::String ^ thumbprint);
public virtual System.Security.Cryptography.X509Certificates.X509Certificate2 ResolveCertificate (string thumbprint);
public virtual System.Security.Cryptography.X509Certificates.X509Certificate2? ResolveCertificate (string thumbprint);
abstract member ResolveCertificate : string -> System.Security.Cryptography.X509Certificates.X509Certificate2
override this.ResolveCertificate : string -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Overridable 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.