Back to product page

HostCertificate callback method


Called when remote server provides its certificate.

Syntax

  • Basic
object.HostCertificate (Owner, Cert, ErrorCode, ErrorText, Accept)
The HostCertificate(object,Owner,Cert,ErrorCode,ErrorText,Accept) syntax has these parts:
objectAn expression evaluating to an object of type IwodTelnetNotify
OwnerAn expression evaluating to an object of type wodTelnetDLX
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

NOTE: This method is called only if you implemented IwodTelnetNotify interface in your application, and wodTelnet.Notification property has received reference to instance of your implementation.

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