SuperSocket 1.4 series documentation (16) enable transport layer encryption (TLS/SSL) in SuperSocket)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.