Persistent SSL Config Challenges with Home Assistant on Raspberry Pi 3

I’ve been struggling all night, working with ChatGPT, to resolve an SSL configuration issue on my Home Assistant setup hosted on a Raspberry Pi 3 (rpi3-64). Here are the details:

  • HA accessible locally on a private IP (Port 8123).
  • Domain set for remote access (domain withheld for privacy).
  • Router port forwarding configured from WAN port 8443 to HA’s LAN port 8123.
  • Utilizing Let’s Encrypt for SSL, with certificates set up in HA.
  • Employing “NGINX Home Assistant SSL proxy” add-on in HA, with HTTP port default and HTTPS port set to 8443.

However, I’m unable to access HA remotely over HTTPS, encountering “ERR_SSL_PROTOCOL_ERROR” in my browser, and HA logs present multiple timeout errors and “BadStatusLine: 400” related to aiohttp.server. I’m looking for advice on potential SSL handling issues or NGINX reverse proxy misconfigurations.

Here are the http settings in configuration.yaml:

http:
  ip_ban_enabled: false
  login_attempts_threshold: 100
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
    - 127.0.0.1

HA System Versions:

Core: 2023.12.3
Supervisor: 2023.12.0
Operating System: 11.2
Frontend: 20231208.2

Appreciate any help or suggestions!