My goal is to secure the openHAB site on my emonPi with HTTPS such that when I log in remotely my password is not sent in the clear.
My configuration: my emonHub runs the November 2016 emonPi SD image. It is connected to my home router via ethernet, and is assigned a static IP. I use port-forwarding in my router to forward traffic on ports 80, 443, 883, 8080, and 8443 to those same ports on my emonHub. I own a domain name, and I use AWS Route 53 to forward requests for “home.mydomainname.com” to the IP I’m assigned by my service provider.
I used CertBot from Let’s Encrypt successfully on the emonHub. Now when I browse to https://home.mydomain.com/ I get forwarded to https://home.mydomain.com/emoncms and I see the “Secure” indicator in my browser.
Now I’d like to get the same thing working for my openHAB instance on that emonHub. I’ve tried browsing to https://home.mydomain.com:8443, but I don’t get any response and the connection times out.
I’ve read a number of articles that are beyond my knowledge of Apache/NGIX, but it seems like I’m pretty close, and that if I could do some kind of virtual host, or redirection, the connection to openHAB could be secured with the certificate I now already have in place. Can anyone help get me there? Thanks!