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

Self-Signed SSL Certificate #68

Closed
eximiusvir opened this issue Mar 29, 2018 · 5 comments
Closed

Self-Signed SSL Certificate #68

eximiusvir opened this issue Mar 29, 2018 · 5 comments

Comments

@eximiusvir
Copy link

@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.

@eximiusvir
Copy link
Author

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

Regardless, I’d still love this feature if it’s something you’d consider.

@iShift
Copy link
Contributor

iShift commented Mar 30, 2018

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

@oznu
Copy link
Member

oznu commented Apr 2, 2018

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.

@pierrejochem
Copy link

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

@oznu
Copy link
Member

oznu commented Apr 6, 2018

Added example nginx vhost to wiki: https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-SSL-with-Nginx

@oznu oznu closed this as completed Apr 6, 2018
@oznu oznu mentioned this issue May 8, 2018
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

4 participants