Hi, I have installed and managed to work my Home Assistant on Ubuntu Server 20.04 via http protocol in duckdns. I can reach my home-assistant with http://www.mydomain.duckdns.org.
But I get an error when I try to set an SSL certification.
I use Dehydrated and generate the .pem files but when I put them into confiruation.yaml and reboot it shows this error:
Failed config
http:
- Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/usr/share/hassio/homeassistant/dehydrated/certs/MYDOMAIN.duckdns.org/fullchain.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/usr/share/hassio/homeassistant/dehydrated/certs/MYDOMAIN.duckdns.org/privkey.pem'. (See /config/configuration.yaml, line 3).
I have also tried with
sudo chmod 755 //on both .pem files
but no solution. Anyone knows how to solve this problem?
I’m not familiar with dehydrated, but I think a far simpler option would be to use the add-on “Nginx Proxy Manager”. I am using the same environment as you and that is how I connect. The add-on shows exactly how to set it up and it takes care of the SSL certs using Let’s Encrypt.
I solved the problem, there must have been a problem with my installation of Home Assistant since I formatted my PC, re installed, and now i managed to have HTPPS via DuckDns and Let’sEncrypt easily, which didn’t work before. Thank you guys anyway for the answers!