Mentalis.org Security Library documentation

CertificateChain.VerifyChain Method (String, AuthType, VerificationFlags)

Verifies the end Certificate according to the SSL policy rules.

[Visual Basic]
Overridable Overloads Public Function VerifyChain( _
   ByVal server As String, _
   ByVal type As AuthType, _
   ByVal flags As VerificationFlags _
) As CertificateStatus
[C#]
public virtual CertificateStatus VerifyChain(
   string server,
   AuthType type,
   VerificationFlags flags
);

Parameters

server
The server that returned the certificate -or- a null reference if the certificate is a client certificate.
type
One of the AuthType values.
flags
One or more of the VerificationFlags values. VerificationFlags values can be combined with the OR operator.

Return Value

One of the CertificateStatus values.

Exceptions

Exception TypeCondition
CertificateExceptionAn error occurs while verifying the certificate.

See Also

CertificateChain Class | Org.Mentalis.Security.Certificates Namespace | CertificateChain.VerifyChain Overload List