SuperSocket supports transport layer encryption (TLS/SSL) In Sync Mode ).
First, you need to prepare the Certificate file (with a private key) for encryption ). Certificates used for testing can be generated (http://supersocket.codeplex.com/releases/view/59311) by the CertificateCreator of the SuperSocket, and then (*. pfx) is imported into the trusted Certificate directory of the test server. The certificate in the production environment must submit an application to the Certificate Authority before obtaining the certificate file. After obtaining the certificate, go to the Certificate Manager on your computer to export the Certificate file with the private key (*. pfx ).
Then, add the encrypted transmission attributes and nodes in the configuration file.
<Server name = "SecureSuperWebSocket"
ServiceName = "SuperWebSocket"
Ip = "Any" port = "2012" mode = "Async" security = "tls">
<Certificate filePath = "supersocket. pfx"
Password = "supersocket"
IsEnabled = "true"> </certificate>
</Server>
The Transport Layer enables tls encryption.
The server node's subnode certificate is used to configure the path and password of the certificate file used for transport layer encryption.
In this way, SuperSocket enables TLS encrypted transmission for all connected clients.