Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebServer with ssl #462

Open
posipov34 opened this issue Dec 13, 2017 · 0 comments
Open

WebServer with ssl #462

posipov34 opened this issue Dec 13, 2017 · 0 comments

Comments

@posipov34
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant