Been following this Guide. I don’t need to access HA away from my network. Just need https so I can add smarthings integration.
I created keys with following command and placed them in homeassisant directory.
openssl req -sha256 -newkey rsa:4096 -nodes -keyout privkey.pem -x509 -days 730 -out certificate.pem
I then edited configuration.yaml and restarted homeassisant. I forwarded port 443 to 8123 tfor raspberry pi.
I then try to access it at https://localip:port
Configuration.yaml:
Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
ssl_certificate:
/mnt/dietpi_userdata/homeassistant/certificate.pem
ssl_key:
/mnt/dietpi_userdata/homeassistant/privkey.pem
Log:
21:16:08 ERROR (MainThread) [homeassistant.setup] Setup failed for ssl_certificate: Integration not found.
2019-05-21 21:16:09 ERROR (MainThread) [homeassistant.setup] Setup failed for ssl_key: Integration not found.
2019-05-21 21:16:10 ERROR (MainThread) [homeassistant.components.device_tracker] Unable to load /home/homeassistant
I can log in via http:// but not https://