Trouble with self signed cerificate for SSL (dietpi/raspberry pi): setup failed, integration not found

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://

Are you sure the user running home assistant has read access to the files and the directory they are in?

What type of installation? I find using Duckdns & LetsEncrypt work well together.

It’s running on dietpi. It’s the dietpi “optimized” version.

How do I check which user it’s installed under? At one point I tried changing users of those two files as suggested in the guide to dietpi and homeassisant and it didn’t make a difference.

Yeah I’ll switch to let’s encrypt/duckdns if it’s not a quick fix.

So I need a base url? I’ve tried different ones (local ip with/without port, with/without http or https, and my dyndns) and omitting it (since it’s not mentioned in the guide).

For an example, here is my configuration part for a Home Assistant venv installation.

http:
  base_url: xxx.duckdns.org:8123
  ssl_certificate: /home/homeassistant/dehydrated/certs/bwosborne.duckdns.org/fu
llchain.pem
  ssl_key: /home/homeassistant/dehydrated/certs/bwosborne.duckdns.org/privkey.pe
m

Spaces are important. When posting here, please follow this instruction.
HomeAss_CodeMarking_From%40finity

1 Like