SSL/TLS (.NET)

Setting up the Transport-Level Security (TLS) for your Remoting SDK server is very easy.

Using TLS allows your clients to connect with the more secure https://, superhttps://, tcps:// and supertcps://protocols.

A certificate can be either loaded from a storage file on startup, or auto-generated the first time the server is run. If provided via file, it should be a PKCS#12 certificate without password.

The default Remoting SDK Server template already provides code stubs you can simply uncomment and adjust to fit your needs:

ApplicationServer server = new ApplicationServer("ROServer9");

// TLS
server.AutoCreateSelfSignedCertificate = true;
server.NetworkServer.UseTLS = true;

//server.NetworkServer.CertificateFileName = "</path/to/certificate>";
//server.NetworkServer.CertificateThumbprint = "XX XX XX ...";
//server.NetworkServer.Certificate = <certificate instance>
var lServer = new ApplicationServer('ROServer9');

// TLS
lServer.AutoCreateSelfSignedCertificate := true;
lServer.NetworkServer.UseTLS := true;

//lServer.NetworkServer.CertificateFileName := '</path/to/certificate>';
//lServer.NetworkServer.CertificateThumbprint := 'XX XX XX ...";
//lServer.NetworkServer.Certificate := <certificate instance>
let server = ApplicationServer("ROServer9")

// TLS
server.AutoCreateSelfSignedCertificate = true
server.NetworkServer.UseTLS = true

//server.NetworkServer.CertificateFileName = "</path/to/certificate>"
//server.NetworkServer.CertificateThumbprint = "XX XX XX ..."
//server.NetworkServer.Certificate = <certificate instance>
Dim server As New ApplicationServer("ROServer9")

' TLS
server.AutoCreateSelfSignedCertificate = True

server.NetworkServer.UseTLS = True
' server.NetworkServer.CertificateFileName = "</path/to/certificate>"
' server.NetworkServer.CertificateThumbprint = "XX XX XX ..."
' server.NetworkServer.Certificate = <certificate instance>

' server.NetworkServer.ServerChannel = New IpSuperHttpServerChannel()
' server.NetworkServer.Port = 8099