MailBee.NET Objects 4.0

ClientServerCertificates.AutoValidation Property

Gets or sets the flags against which the server certificate should be automatically validated.

public CertificateValidationFlags AutoValidation {get; set;}

Property Value

A combination of one or more CertificateValidationFlags values. The default value is None.

Remarks

If this property value is not None and SSL handshake starts, MailBee will automatically validate the server certificate against all the flags specified.

If the server certificate fails to pass validation against any of the flags specified, MailBee closes the connection and throws MailBeeCertificateValidationException.

Example

The example is available in ClientServerCertificates topic.

See Also

ClientServerCertificates Class | MailBee.Security Namespace | Validate | Server