CertificateResolver Class¶
A default implementation of Microsoft.AspNetCore.DataProtection.XmlEncryption.ICertificateResolver
that looks in the current user
and local machine certificate stores.
- Namespace
Microsoft.AspNetCore.DataProtection.XmlEncryption
- Assemblies
- Microsoft.AspNetCore.DataProtection
Syntax¶
public class CertificateResolver : ICertificateResolver
-
class
Microsoft.AspNetCore.DataProtection.XmlEncryption.
CertificateResolver
Methods¶
-
ResolveCertificate
(System.String)¶ Locates an
System.Security.Cryptography.X509Certificates.X509Certificate2
given its thumbprint.Arguments: thumbprint (System.String) – The thumbprint (as a hex string) of the certificate to resolve. Return type: System.Security.Cryptography.X509Certificates.X509Certificate2 Returns: The resolved System.Security.Cryptography.X509Certificates.X509Certificate2
, or null if the certificate cannot be found.public virtual X509Certificate2 ResolveCertificate(string thumbprint)
-