Problem with SSL handshake error since version 0.99 up to now 0.108

I am running HA in a venv on a raspberry pi3b+ with raspbian stretch. I just upgraded it to buster and also upgraded to Python 3.7.
I deleted (renamed) the old venv and created a new one with the updated version of HA. But I kept my old configuration and custom components.
I admit I havent changed my configuration.yaml, but only because I couldnt follow all the breaking changes, so I thought I would start HA and change them one by one, according to the errors I will get from the log file. So, here I am.
The first thing I am getting is this:

2019-11-04 13:48:47 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error in data received
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:1056)

I renewed my certificate (thinking that would be the problem, but nothing happened).
When I am trying to open my HA frontend, I am getting error 404.

does your config use http? Check the docs and make sure it’s configured correctly for 101. Lots of changes have happened and things have been deprecated and/or removed entirely.

1 Like

No, my config is using https with self-singed certificate. Yes, indeed many things have changes. Maybe I should update more often. :frowning:

I mean are you using the http config section?

Oh, sorry. Yes I am using it:

http:
  ssl_certificate: /home/homeassistant/.homeassistant/certificate.pem
  ssl_key: /home/homeassistant/.homeassistant/privkey.pem

Anyway, I am not realy patient and I had to fix this problem. So I am now on a fresh installation of Raspbian buster and home assistant in venv.
First run with default configuration and I am still getting the 404 error…
What am I missing here?

EDIT: I downgraded to v0.100 and it is fine. Is that a version problem? I didnt find anything in the forum…

Even though my problem is gone, ( I did nothing. Just downgraded and updated again and it just worked) the error still comes up. I have no issues. I can login, I can view the frontend, I can ssh… But this message is annoying and I would like to know what is causing it.

Error doing job: SSL error in data received
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:1056)
Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 625, in _on_handshake_complete
    raise handshake_exc
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:1056)

Same issue here, though again fully functioning encryption on the surface of things. Fresh install on home-assistant (0.102.3) on raspbian buster lite (kernel 4.19.75+). SSl encryption with Lets Encrypt, but using local ddns updating to a google ddns api, for a google domain - so not using duckdns.

Yea, I still have the message… It is filling up my logs…

Same issue with 0.104.3

2020-01-26 14:20:54 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/sslproto.py", line 625, in _on_handshake_complete
    raise handshake_exc
  File "/usr/local/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/local/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:1056)
2020-01-26 14:20:54 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error in data received
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/local/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/local/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:1056)

Same issue with hassbian 106.5.

Hassbian, python 3.7.3, duckdns, acme.sh

Logger: homeassistant.core
First occured: March 4, 2020, 9:18:24 PM (6 occurences)
Last logged: 10:39:38 AM

Error doing job: SSL error in data received
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1056)

and this…

Logger: homeassistant.core
First occured: March 4, 2020, 9:18:24 PM (6 occurences)
Last logged: 10:39:38 AM

Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 625, in _on_handshake_complete
    raise handshake_exc
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1056)

I am still having this issue with version 0.108.3. And i Just restarted HA and the first 15 minutes this error spammed my logs for 548 times! This is filling up my logs file and in a week the file can get approximately 15mb! I think this is pretty large file for just the logs, isnt it?

Can this error be ignored (or even better, fixed) and prevent it from filling up my logs? Is there a way?