Net Encryption Library
ValidateCertificate Method






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : ValidateCertificate Method
Certificate to check
Checks the status of a certificate, whether it is: expired, untrusted, or trusted
Syntax
'Declaration
 
Public Function ValidateCertificate( _
   ByVal cert As System.Security.Cryptography.X509Certificates.X509Certificate2 _
) As CertificateStatus
'Usage
 
Dim instance As Encryption
Dim cert As System.Security.Cryptography.X509Certificates.X509Certificate2
Dim value As CertificateStatus
 
value = instance.ValidateCertificate(cert)
public CertificateStatus ValidateCertificate( 
   System.Security.Cryptography.X509Certificates.X509Certificate2 cert
)
public function ValidateCertificate( 
    cert: System.Security.Cryptography.X509Certificates.X509Certificate2
): CertificateStatus; 
public function ValidateCertificate( 
   cert : System.Security.Cryptography.X509Certificates.X509Certificate2
) : CertificateStatus;
public: CertificateStatus ValidateCertificate( 
   System.Security.Cryptography.X509Certificates.X509Certificate2* cert
) 
public:
CertificateStatus ValidateCertificate( 
   System.Security.Cryptography.X509Certificates.X509Certificate2^ cert
) 

Parameters

cert
Certificate to check

Return Value

The status of the certificate
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Encryption Class
Encryption Members