HI,
I have an existing code-first Data Abstract sever I was wondering how I could setup additional ServerChannel’s? For instance an additional one that could incorporate SSL\TLS. This is what I am working with:
public static int Main(string[] args)
{
ApplicationServer server = new ApplicationServer("MyRODAServer");
//
// Some optional setup for your server:
//
// TLS
//server.AutoCreateSelfSignedCertificate = true; // Create a certificate on first run
// // Self-signed certificates are rejected by default so additional code
// // might be needed client-side to properly handle them. Please refer to
// // https://docs.remotingsdk.com/Clients/Tasks/HandlingSelfSignedCertificates/
// // for more details
//server.NetworkServer.UseTLS = true; // Enable traffic encryption
//server.NetworkServer.CertificateFileName = "</path/to/certificate>"; // Optionally, load certificate from file
//server.NetworkServer.CertificateThumbprint = "XX XX XX ..."; // or load certificate with provided thumbprint from the system certificate store
//server.NetworkServer.Certificate = <certificate instance> // or load certificate from elsewhere and provide it directly
server.NetworkServer.ServerChannel = new IpHttpServerChannel();
server.NetworkServer.Port = 8099;
server.NetworkServer.ServerMessages[0].Envelopes.Add(new RemObjects.SDK.AesEncryptionEnvelope(@"45454545"));
server.Run(args);
}
Please advise.