supervisor: Openssl-version dont have X25519

Home Assistant release with the issue:

0.86.0b3

Operating environment (HassOS/Generic):

Docker raspberrypi3-homeassistant

Supervisor logs:

2019-01-23 16:07:24 ERROR (MainThread) [homeassistant.setup] Error during setup of component asuswrt
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
    hass, processed_config)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/asuswrt.py", line 61, in async_setup
    await api.connection.async_connect()
  File "/usr/local/lib/python3.6/site-packages/aioasuswrt/connection.py", line 66, in async_connect
    self._client = await asyncssh.connect(self._host, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/misc.py", line 182, in __await__
    return (yield from self._coro)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 5454, in connect
    conn, _ = yield from create_connection(None, host, port, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 5110, in create_connection
    yield from auth_waiter
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 627, in data_received
    while self._inpbuf and self._recv_handler():
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 847, in _recv_packet
    processed = handler.process_packet(pkttype, seq, packet)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/packet.py", line 215, in process_packet
    self._packet_handlers[pkttype](self, pkttype, pktid, packet)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 1414, in _process_kexinit
    self._kex = get_kex(self, kex_alg)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/kex.py", line 122, in get_kex
    return handler(alg, conn, hash_alg, *args)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/kex_ecdh.py", line 47, in __init__
    self._priv = ecdh_class(*args)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/crypto/curve25519.py", line 31, in __init__
    self._priv_key = x25519.X25519PrivateKey.generate()
  File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/primitives/asymmetric/x25519.py", line 39, in generate
    _Reasons.UNSUPPORTED_EXCHANGE_ALGORITHM
cryptography.exceptions.UnsupportedAlgorithm: X25519 is not supported by this version of OpenSSL.

Description of problem: There seems to be a problem with the openssl version. https://github.com/home-assistant/home-assistant/issues/20361

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 8
  • Comments: 18 (3 by maintainers)

Most upvoted comments

I still have this issue for HomeKit Controller with the new release 87.0

Still not solved with hassio 86.4

2019-01-31 21:27:26 ERROR (MainThread) [homeassistant.setup] Error during setup of component asuswrt Traceback (most recent call last): File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component hass, processed_config) File “/usr/local/lib/python3.6/site-packages/homeassistant/components/asuswrt.py”, line 61, in async_setup await api.connection.async_connect() File “/usr/local/lib/python3.6/site-packages/aioasuswrt/connection.py”, line 66, in async_connect self._client = await asyncssh.connect(self._host, **kwargs) File “/usr/local/lib/python3.6/site-packages/asyncssh/misc.py”, line 182, in await return (yield from self._coro) File “/usr/local/lib/python3.6/site-packages/asyncssh/connection.py”, line 5454, in connect conn, _ = yield from create_connection(None, host, port, **kwargs) File “/usr/local/lib/python3.6/site-packages/asyncssh/connection.py”, line 5110, in create_connection yield from auth_waiter File “/usr/local/lib/python3.6/site-packages/asyncssh/connection.py”, line 627, in data_received while self._inpbuf and self._recv_handler(): File “/usr/local/lib/python3.6/site-packages/asyncssh/connection.py”, line 847, in _recv_packet processed = handler.process_packet(pkttype, seq, packet) File “/usr/local/lib/python3.6/site-packages/asyncssh/packet.py”, line 215, in process_packet self._packet_handlers[pkttype](self, pkttype, pktid, packet) File “/usr/local/lib/python3.6/site-packages/asyncssh/connection.py”, line 1414, in _process_kexinit self._kex = get_kex(self, kex_alg) File “/usr/local/lib/python3.6/site-packages/asyncssh/kex.py”, line 122, in get_kex return handler(alg, conn, hash_alg, *args) File “/usr/local/lib/python3.6/site-packages/asyncssh/kex_ecdh.py”, line 47, in init self._priv = ecdh_class(*args) File “/usr/local/lib/python3.6/site-packages/asyncssh/crypto/curve25519.py”, line 31, in init self._priv_key = x25519.X25519PrivateKey.generate() File “/usr/local/lib/python3.6/site-packages/cryptography/hazmat/primitives/asymmetric/x25519.py”, line 39, in gener ate _Reasons.UNSUPPORTED_EXCHANGE_ALGORITHM cryptography.exceptions.UnsupportedAlgorithm: X25519 is not supported by this version of OpenSSL.

I think this issue can be closed now - see https://github.com/home-assistant/hassio/issues/914.

@kennedyshead interest.

I’m happy to confirm that asuswrt now works in 0.87.0

Will this be fixed for HomeKit Controller as well? Sorry for asking, I just sat down at my PC to report this issue with the HomeKit controller when I found this issue. Thanks! 😄

Yes, it will get solved for both platforms with this.