I’m new to Home Assistant and Linux but have been able to set up home assistant on a Synology docker. Got my self some scenes and automations running and really like it. I find automation beeing quite addictive.
I have tried many different approaches to get SSL working but I think with my last attempt I’m prettey close:
- Used Synology to create a letsencrypt cert.
- Copied the cert files Synology created to the hass config folder.
- Forwarded port 443 to my synology 8123 in my router
added this to my configuration.yaml file
http: api_password: !secret http_password # Uncomment this if you are using SSL/TLS, running in Docker container, etc. base_url: mydomain.duckdns.org:8123/ ssl_certificate: chain.pem ssl_key: privkey.pem
Home assistant logs this error in home-assistant.log
2017-11-09 20:04:02 ERROR (MainThread) [homeassistant.config] Invalid config for [http]: not a file for dictionary value @ data[‘http’][‘ssl_certificate’]. Got ‘chain.pem’
not a file for dictionary value @ data[‘http’][‘ssl_key’]. Got ‘privkey.pem’. (See /config/configuration.yaml, line 27). Please check the docs at https://home-assistant.io/components/http/
2017-11-09 20:04:02 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Invalid config.
I tried changing permissions with:
sudo chmod 755 chain.pem
sudo chmod 755 privkey.pem
Still same error…