MailBee.NET Objects 4.0

ClientServerCertificates.Server Property

Gets the server certificate.

public Certificate Server {get;}

Property Value

A Certificate object representing the certificate that was received from the server once SSL handshake was completed, or a null reference (Nothing in Visual Basic) if SSL handshake is not yet completed or not connected to the server. The default value is a null reference.

Remarks

To tell MailBee to validate the server certificate automatically during SSL handshake, use AutoValidation property. To validate it manulally, use Validate method of Server object once SSL handshake is done. You can also subscribe to TlsStarted event published by mailer components such as Pop3 to catch the very moment when the SSL handshake is done.

Example

The example is available in ClientServerCertificates topic.

See Also

ClientServerCertificates Class | MailBee.Security Namespace | Client