Glossary Item Box
In order to create an SSL capable server application, all that is required is to set the Certificate property to a certificate. After doing this, simply listen for connections and communicate with connected clients normally.
This topic does not go into in-depth discussion about creating an actual server application. If you are interested in more information about server applications, see The Server and Tcp Components section. The ideas presented in that topic can be combined with the ideas presented in this topic to make those server applications secure.
Communicate securely with the Server component.
Set the Certificate property to a valid certificate. A useful way of doing this is to use the CertificateListForm object. In this example, for the sake of simplicity, the default certificate is used.
[C#] // Create a new CertificateStore object for "MY" certificate store. Dart.PowerTCP.SslSockets.CertificateStore store = new Dart.PowerTCP.SslSockets.CertificateStore(CertificateStoreLocation.LocalMachine, "My", KeyUsage.ServerAuth); // Set the certificate to the default certificate. server1.Certificate = store[0]; // Begin listening for connections. server1.Listen(443); [Visual Basic] ' Create a new CertificateStore object for "MY" certificate store. Dim store As New Dart.PowerTCP.SslSockets.CertificateStore(CertificateStoreLocation.LocalMachine, "My", KeyUsage.ServerAuth); ' Set the certificate to the default certificate. Server1.Certificate = store(0) ' Begin listening for connections. Server1.Listen(443)
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.