I’m trying to update from an older version of HA to the latest 0.116, running on Armbian Ubuntu 18.04 platform, Python virtual env. I have the new version starting successfully now, more-or-less, but with a ton of problems to resolve.
The first major issue is that I get this error repeated many times on startup.
Traceback (most recent call last):
File "/srv/ha/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py", line 509, in _reconnect
return await self._connect_once()
File "/srv/ha/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py", line 580, in _connect_once
request, expected = state_machine.send(None)
File "/srv/ha/lib/python3.8/site-packages/aiohomekit/protocol/__init__.py", line 326, in get_session_keys
ios_key = x25519.X25519PrivateKey.generate()
File "/srv/ha/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric/x25519.py", line 40, in generate
raise UnsupportedAlgorithm(
cryptography.exceptions.UnsupportedAlgorithm: X25519 is not supported by this version of OpenSSL.
It appears to be some new dependency in the Homekit integration, something to do with OpenSSL. I haven’t been able to find any specific advice on resolving this problem.
OpenSSL version on this system produces “OpenSSL 1.1.1 11 Sep 2018”. I could try updating to a new version of OpenSSL, but I don’t want to try that at random because updating OpenSSL appears to be non-trivial due to the security requirements (e.g., https://medium.com/@brunoosiek/updating-openssl-latest-and-greatest-version-in-ubuntu-18-04-8f10ba4e2377). I worry that it might break my access to the system if it goes wrong, and turn out to be for nothing if it doesn’t actually resolve this issue.
Thoughts, suggestions?