SSL_ERROR_RX_RECORD_TOO_LONG Again

I have HAOS 16.3 running on a Pi 5, and I’m trying to set up TLS. I’ve installed the step-ca-client addon, and it seems to be working according to the logs, but when I try to access https://homeassistant.voncorax.internal:8123 I get the error message SSL_ERROR_RX_RECORD_TOO_LONG.

My research suggests this is due to either accessing the wrong port or a TLS misconfiguration, but I can’t find any TLS settings. I assume I have to do something in configuration.yaml; can someone please point me in the right direction?

I know my CA works, because I have successfully configured Gitea on another machine to use TLS.

Figured it out. I needed to edit my configuration.yaml file to add the following:

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

then set the new URL in Settings → System → Network: Home Assistant URL. I set both the Home Assistant URL and the Local network fields, after switching off the automatic setting on the latter.