My server is a running using SuperWebSocket with the following code for the server:
var server = new WebSocketServer();
var config = new ServerConfig();
config.Port = 4015;
config.Security = "Tls";
config.Certificate = new CertificateConfig{
FilePath = serverConfiguration.Certificate.Path,
ClientCertificateRequired = true
}
server.Setup(config);
server.Start();
For client I am trying to use WebSocket4Net and I am trying to configure the certificate the client should present without any luck the current client code is:
var client = new WebSocket("wss://localhost:4015, "basic", WebSocketVersion.Rfc6455);
client.Open();