I’ve just switched from a virtualenv HA install to a Docker install on Lubuntu 16.10. I copied my config folder across, and HA will not start in Docker (it was fine in the virtualenv). I regenerated a certificate.pem and privkey.pem (using OpenSSL) into my HA config folder (/home/myuser/homeassistant). That folder has read-write permissions for all users, but I get this when I check my config:
Failed config
http:
- Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/home/myuser/homeassistant/certificate.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/home/myuser/homeassistant/privkey.pem'
Thanks. I’ve since discovered (thanks to advice elsewhere here) that using the -v parameter on my Docker run command (when I created the HA Docker container) enabled me to map a folder to the Docker container. So:
docker run -v ~/homeassistant:/config
mapped my ~/homeassistant folder to a folder called /config in the HA Docker container. I then changed my config to refer to /config/certificate.pem and /config/privkey.pem and it all started working.
Hi,
i have the same issue with cert/key on my docker on QNAP NAS (i followed the official HA Guide):
Failed config
http:
- Invalid config for [http]: not a file for dictionary value @ data[‘http’][‘ssl_certificate’]. Got ‘/share/Container/HomeAssistant/certificate.pem’
not a file for dictionary value @ data[‘http’][‘ssl_key’]. Got ‘/share/Container/HomeAssistant/privkey.pem’. (See /config/configuration.yaml, line 26). Please check the docs at https://home-assistant.io/components/http/