Certificate is required in this security mode

Jul 29, 2014 at 5:33 AM
Edited Jul 29, 2014 at 5:37 AM
HELLO,
I try to develop a websocket server with "wss" support using SuperWebSocket, setup fail and got the certificate error,
and the error log is "2014-07-29 12:24:13,048 [4416] ERROR SuperWebSocket - Certificate is required in this security mode!",
has anything wrong in certificate config..?
below is the part of the code...
Thanks for you help....
this.appServer = new SuperWebSocket.WebSocketServer();

            SuperSocket.SocketBase.Config.IRootConfig _rootConfig;
            SuperSocket.SocketBase.Config.IServerConfig _serverConfig;
            _rootConfig = new RootConfig(); 
           
            _serverConfig = new ServerConfig() {
                Name = "SuperWebSocket",
                Ip = "Any",
                MaxConnectionNumber = 1000,
                Mode = SocketMode.Tcp,
                Port = 2012,
                ClearIdleSession = false,
                ClearIdleSessionInterval = 86400,
                ListenBacklog = 1000,
                ReceiveBufferSize = 1024,
                SendBufferSize = 1024,
                KeepAliveInterval = 1,
                KeepAliveTime = 55,
                Security = "tls"
                Certificate = new SuperSocket.SocketBase.Config.CertificateConfig
                                               {
                                                   StoreName = "MY",
                                                   Thumbprint = "580502b3efe8274191794565716eae01486bd454"

                                               }
            };
           
            SuperSocket.SocketEngine.SocketServerFactory f = new SuperSocket.SocketEngine.SocketServerFactory();

appServer.Setup(_rootConfig, _serverConfig, f);
           
Aug 9, 2014 at 6:13 AM
Please make sure the storeName you set is correct.
There are also other parameters you can set like storeLocation:
http://docs.supersocket.net/v1-6/en-US/Enable-TLS-SSL-trasnferring-layer-encryption-in-SuperSocket