Glossary Item Box

PowerTCP SSL Sockets for .NET

Creating an SSL Server

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)           

 

In This Section

Security Overview
Provides an overview of basic security concepts such as digital certificates and authentication.
PowerTCP Secure Implementation Explained
Discusses how security is implemented in PowerTCP SSL Sockets for .NET
Creating an SSL Client
Discusses how to create an SSL Client using the Tcp component.
Creating an SSL Server
Discusses how to create an SSL Server using the Server component.
Using the CertificateListForm Object
Demonstrates how to use the CertificateListForm to assist users in selecting a certificate.
Using MMC to Manage SSL Certificates
Discusses how to use the Microsoft Management Console to manage SSL certificates.
Simple Encryption/Decryption
Demonstrates how to use the SymmetricCryptoStream to encrypt/decrypt stream-based data.
Windows 95/98 Security Compatibility
Discusses compatibility issues with Windows 95 and 98.

 

 


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.