Hi, i added my certificate from synology to homeassistant and used reverse proxy to forward port 443 to 8123.
When i try to access homeassistant via HTTPS, it suddenly asks for a password? Even after adding a password to the configuration, it doesn’t work?
I don’t believe the password is the issue here, you simply aren’t making a connection, hence the “Unable to connect” The log-in screen is cached in your browser, otherwise it wouldn’t appear.
Try using incognito mode (or similar) or clearing your browsing data and trying again, you should get a standard cannot connect message from your browser with nothing from HA.
I’ve been having the same problem when I use the mysynology.synology.me URL. I had to create a new DNS through No-IP to get external access. I haven’t been able to figure out if it’s a Synology https certificate issue or what. I’ve been having other issues with DDNS and the new 6.2 is being released today so I’m upgrading to that now and maybe it’ll resolve some of the issues I have been having.
It did. I was able to connect externally without any issues, although it wasn’t HTTPS. For me being able
to connect via HTTP was more important than being able to connect HTTPS.
That works, i can connect internally via localhost:8123 and externally via externalip:8123. But now i want to use https and without adding the :8123 to it (externally).
Alright i’ve found the solution on how to fix it.
So my setup is next, i generated a Let’s Encrypt certificate using my synology and reversed proxy 443 to 8123.
You export the files from let’s encrypt to your homeassistant.
Make sure your HTTP: in configuration.yaml is correct like my example.
http:
base_url: XXX.SYNOLOGY.ME:8123
ssl_certificate: /config/certs/cert.pem [location of your exported cert.pem file from your synology]
ssl_key: /config/certs/privkey.pem [location of your exported privkey.pem file from your synology]
Now comes the magic part:
If your running homeassistant on a linux or Raspberry, run next command:
Hey @koenhaemels
How do you copy the ssl certificate generated from synology?
Can't you just instead of copying manually, go to the certificate path ? In stead of copying this to this path /config/certs/cert.pem?
Also for the ssl_key...
Now i can get to my home assistant with http://xxx.synology.me is that normal? and how do you set the reverse proxy? can't you just do port forwarding on your modem from your synology nas ip to port :8123?
Sorry for the stupid questions but I'm quet noob on ssl shizzle and network :) trying to get pro some time. Thanks in advance !