Verifies the end Certificate according to the SSL policy rules.
Namespace: LLCryptoLib.Security.CertificatesAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public virtual CertificateStatus VerifyChain( string server, AuthType type, VerificationFlags flags, byte[] crl ) |
Visual Basic |
---|
Public Overridable Function VerifyChain ( _ server As String, _ type As AuthType, _ flags As VerificationFlags, _ crl As Byte() _ ) As CertificateStatus |
Visual C++ |
---|
public: virtual CertificateStatus VerifyChain( String^ server, AuthType type, VerificationFlags flags, array<unsigned char>^ crl ) |
Parameters
- server
- Type: System..::..String
The server that returned the certificate -or- a null reference if the certificate is a client certificate.
- type
- Type: LLCryptoLib.Security.Certificates..::..AuthType
One of the AuthType values.
- flags
- Type: LLCryptoLib.Security.Certificates..::..VerificationFlags
One or more of the VerificationFlags values. VerificationFlags values can be combined with the OR operator.
- crl
- Type: array<System..::..Byte>[]()[][]
An optional CRL to check. This parameter can be null (Nothing in Visual Basic).
Return Value
One of the CertificateStatus values.
Remarks
Only the leaf certificate is checked against the CRL.
Exceptions
Exception | Condition |
---|---|
LLCryptoLib.Security.Certificates..::..CertificateException | An error occurs while verifying the certificate. |