How To Enable SSL

Discussions about RaZberry - Z-Wave board for Raspberry computer
Locked
islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

How To Enable SSL

Post by islipfd19 »

Is there any possible way to enable SSL without breaking zwave and the web interface on Pi?
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: How To Enable SSL

Post by pofs »

No, the built-in web server module is built without SSL support. Why would you need to have SSL in the intranet?
And find.z-wave.me offers SSL for external connections.

If you need SSL that bad, make zway listen only on 127.0.0.1 interface, and use nginx with SSL to proxy requests.
islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: How To Enable SSL

Post by islipfd19 »

Just to see if it can be done. Yes, I would agree; why would anyone need SSL on their own private network? For the paranoid, sending a password to login to a site without SSL is risky even on a private network.

I had begun to play attempting to proxy zway using nginx but the page keeps refreshing. Which files need to be updated in zway for it to listen on 127.0.0.1? This may be the culprit to the constant refresh.
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: How To Enable SSL

Post by pofs »

In automation/Webserver.js replace

Code: Select all

ws = new WebServer(8083, function(req) {
with

Code: Select all

ws = new WebServer("127.0.0.1:8083", function(req) {
islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: How To Enable SSL

Post by islipfd19 »

Great, thanks! After updating that file I still had issues with getting it to work. But I finally got it to work. For those that may also be interested; I'll type up a how to in the recipes sub-forum.
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: How To Enable SSL

Post by pz1 »

islipfd19 wrote:G I'll type up a how to in the recipes sub-forum.
Are you aware of Dolpheen's post there Is there a need to update that one? (I have no knowledge of this so I can't judge)
islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: How To Enable SSL

Post by islipfd19 »

Yes, I'm aware of his post and tried following it. It didn't work and I'm not entirely sure why, I believe it has something to do with .htpasswd. The latest version 2.1.1 now using authentication.

Could you close this thread? I created the How To located here viewtopic.php?f=3424&t=22053

Locked by moderator
Locked