During the secure handshake, the Certificate Received event will fire, providing the user with information about the server’s certificate, as well as an opportunity to accept or reject the certificate, if desired.
//The certificate received event will fire when the component receives the server's certificate
private void myObject1_CertificateReceived(object sender, CertificateReceivedEventArgs e)
//Examine who the certificate was issued to, and whether its date is valid
if (e.Certificate.IssuedTo == "MyPrivateServer" && e.ValidDate == true)
e.Accept = true;
e.Accept = false;