The Secure property determines if client connections are
encrypted using the Transport Layer Security (TLS) protocol. The
default value for this property is False, which specifies that
clients will use a standard, unencrypted connection to the server. To
enable secure connections, the application should set this property
value to True prior to calling the Start method.
When secure connections are enabled, the server will accept the
client connection and then wait for the client to initiate the
handshake where both the client and server negotiate the various
encryption options available. This process is handled automatically
by the server, and all that is required is that the application
specify the server certificate which should be used. This is done by
setting the CertificateName property, and optionally the
CertificateStore property if required.
It is recommended that the application use exception handling to
catch any errors that may occur when changing the value of this
property. If the control is unable to initialize the Windows security
libraries, an exception will be thrown when this property value is
modified.