Hassbian and SSL error in data received

Hello, I am trying to get my HomeAssistant running on Hassbian to work with SSL (through DuckDNS). I am following this guide so i created an account on DuckDNS, then i did sudo hassbian-config install duckdns and after prompting the DuckDNS URL and Token i generated the files through dehydrated.
Then I edited my configuration.yaml with the following:

http:
  ssl_certificate: /home/homeassistant/dehydrated/certs/furbetta.duckdns.org/fullchain.pem
  ssl_key: /home/homeassistant/dehydrated/certs/furbetta.duckdns.org/privkey.pem
  base_url: furbetta.duckdns.org:8123

Save, reboot and then… as soon as I reboot my hassbian the homeassitant doesn’t start, so i check through systemctl status [email protected] and i get the following:


Jul 31 12:05:16 hassbian hass[554]: ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:1056)
Jul 31 12:05:16 hassbian hass[554]: 2019-07-31 12:05:16 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error in data received
Jul 31 12:05:16 hassbian hass[554]: Traceback (most recent call last):
Jul 31 12:05:16 hassbian hass[554]:   File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
Jul 31 12:05:16 hassbian hass[554]:     ssldata, appdata = self._sslpipe.feed_ssldata(data)
Jul 31 12:05:16 hassbian hass[554]:   File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
Jul 31 12:05:16 hassbian hass[554]:     self._sslobj.do_handshake()
Jul 31 12:05:16 hassbian hass[554]:   File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
Jul 31 12:05:16 hassbian hass[554]:     self._sslobj.do_handshake()
Jul 31 12:05:16 hassbian hass[554]: ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:1056)

Some info on my system:
Distro…: Raspbian GNU/Linux 10 (buster)
Home Assistant 0.96.5

What am I doing wrong? Thank you in advance!

1 Like

Not sure if you’ve solved it, but I was/am having the same problem on 0.96.5 venv.

I fixed the HA not starting, by sudo chmod 755 ing both the fullchain.pem & privkey.pem files.

But it has still kept throwing errors in the log, after more searching , I’ve found this thread.