Back to product page

HostCertificate event


Fires when remote server provides its certificate.

Syntax

  • Basic
Private Sub object_HostCertificate (ByRef Cert, ByVal ErrorCode, ByVal ErrorText, ByRef Accept)
The HostCertificate(Cert,ErrorCode,ErrorText,Accept) syntax has these parts:
CertAn ICertificate object. Reference to server's certificate object.
ErrorCodeA Long value. Error found for the certificate.
ErrorTextA String value. Text description of certificate errors, one per line.
AcceptA Boolean value. When set to False, wodTelnetDLX aborts connection.

Remarks

Once wodTelnetDLX connects to SSL/TLS server, it will receive server's certificate that holds information about server's validity. It will contain information such as server's name, organization, valid dates etc.. Certificates are usually signed by some known CA (Certificate Authority) whose responsibility is to prove that server is really the one he's representing to be.

If you think remote server's certificate is invalid, you should set Accept parameter to False and wodTelnetDLX will immediately close the connection.

Platforms

Windows