Homebridge-config-ui-x: Self-Signed SSL Certificate

Created on 30 Mar 2018  路  5Comments  路  Source: oznu/homebridge-config-ui-x

@oznu : This may be outside the scope of the config-ui-x plugin, but I would greatly appreciate a walkthrough for creating / binding a self-signed certificate to the port we configure for config-ui-x.

Creating the Self-Signed Certificate (link) isn't hard, nor is the binding statement (link); however, when I navigate to the port forwarded through my router, I'm unable to achieve a secure connection.

I'm sure this is a simple user education issue; however, after reading this article (link), I thought it would be really nice to be able to securely access my HomeBridge instance remotely.

If you've any tips, or even a rough walkthrough here, I'll commit to writing up a well formatted and fleshed out help document for others to follow.

Most helpful comment

... and it would be perfect if you add support of lets encrypt for true https ...

All 5 comments

Was doing more reading on SSL with nodeJS servers and it looks like I was WAY off (I鈥檓 mostly familiar with Windows/IIS).

Regardless, I鈥檇 still love this feature if it鈥檚 something you鈥檇 consider.

... and it would be perfect if you add support of lets encrypt for true https ...

Using a reverse proxy to achieve SSL is the method I recommend. Something like nginx is much more efficient when it comes to serving ssl traffic.

I have been thinking of writing up a wiki article explaining how to do this, but there are already many guides available on the internet explaining how to set up let's encrypt using certbot and nginx.

Nginx runs on Windows too!

If you're running this in the oznu/homebridge docker image then I would recommend using this docker image, which I use, to add let's encrypt ssl support: https://github.com/linuxserver/docker-letsencrypt.

I have configured openvpn for this issue. It is more secure to protect it via a VPN solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrtekkid picture mrtekkid  路  3Comments

grzegorz914 picture grzegorz914  路  6Comments

mafyata picture mafyata  路  3Comments

RaymondMouthaan picture RaymondMouthaan  路  5Comments

charona picture charona  路  3Comments