Issues with Https

Hey all,

I’m having some issues after I get https going on my Home Assistant install.

Basically - I’ve got the certificates created via LetsEncrypt (I’ve got other certs I can use too, but this part is fine). I then update my configuration.yaml to include:

http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

I’ve forwarded 8123 on my router to my HA server.

I give it a restart and everything is more or less fine. If I access my HA from an external location it’s all good and the certitificate is valid. However, the problem is that my iphone accessing the HA instance internally has an issue - and the iOS app refuses to accept an invalid certificate. If I browse from a desktop it’s all fine - I can ignore the warning - but not from the iPhone.

So, I thought the work around would be to put:
internal_url: http://[ip_address]:8123
in my homeassistant part of configuration.yaml.

However, it looks like HA doesn’t listen to that setting? As soon as I enable the keys https is the only option - even with the internal_url set to HTTP - I can only access the HTTPS address.

Due to my network setup - I can’t access the external url from within my network. Right now I think the only way to fix this would be to run a internal DNS server that serves the local HA IP address back internally to get around the cert error.

But just curious - has anyone go the internal_url option to work with http? Or got the iPhone app to accept a cert error?

Home Assistant either does HTTPS or HTTP, not both.

If you want HTTPS externally, and HTTP internally, then you have to use a proxy server to handle the SSL.

1 Like