CertUtils.LoadCertificateByThumbprint(String, Boolean) Método

Definición

Carga el certificado dada su huella digital.

public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadCertificateByThumbprint (string thumbprint, bool requirePrivateKey);
static member LoadCertificateByThumbprint : string * bool -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Shared Function LoadCertificateByThumbprint (thumbprint As String, requirePrivateKey As Boolean) As X509Certificate2

Parámetros

thumbprint
String

Huella digital del certificado.

requirePrivateKey
Boolean

Valor que indica si se requiere una clave privada.

Devoluciones

Si se carga correctamente, el objeto X509Certificate2 que representa el certificado; de lo contrario, una referencia nula (Nothing en Visual Basic).

Se aplica a