You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
When I try to use a WebServer class with an self signed SSL certificate, an error occurs " Error: Failed to bind to 1085 at Error (native) at TestWS._initWebserver (automation/userModules/TestWS/index.js:41:19)"
My code is:
self.websrv = new WebServer(1085, function(req) {
self.log("Request: "+JSON.stringify(req));
return "Hi";
},
// SSL parameters
{ssl_cert: "/opt/z-way-server/automation/userModules/TestWS/certs/cert.pem", ssl_ca: "/opt/z-way-server/automation/userModules/TestWS/certs/csr.pem"});
When I remove the ssl parameters the code works well but by the http protocol.
I am trying to run z-way server (as i found in another issue) as
sudo SSL_TRUST_SELF_SIGNED=yes /etc/init.d/z-way-server restart
but without success.
Tell me, please, how can i run WebServer with SSL?
The text was updated successfully, but these errors were encountered:
Hi.
When I try to use a WebServer class with an self signed SSL certificate, an error occurs " Error: Failed to bind to 1085 at Error (native) at TestWS._initWebserver (automation/userModules/TestWS/index.js:41:19)"
My code is:
self.websrv = new WebServer(1085, function(req) {
self.log("Request: "+JSON.stringify(req));
return "Hi";
},
// SSL parameters
{ssl_cert: "/opt/z-way-server/automation/userModules/TestWS/certs/cert.pem", ssl_ca: "/opt/z-way-server/automation/userModules/TestWS/certs/csr.pem"});
When I remove the ssl parameters the code works well but by the http protocol.
I am trying to run z-way server (as i found in another issue) as
sudo SSL_TRUST_SELF_SIGNED=yes /etc/init.d/z-way-server restart
but without success.
Tell me, please, how can i run WebServer with SSL?
The text was updated successfully, but these errors were encountered: