Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLSV13_ALERT_CERTIFICATE_REQUIRED #202

Open
Racailloux opened this issue Jul 6, 2024 · 0 comments
Open

TLSV13_ALERT_CERTIFICATE_REQUIRED #202

Racailloux opened this issue Jul 6, 2024 · 0 comments

Comments

@Racailloux
Copy link

Racailloux commented Jul 6, 2024

Bonjour,

Lors du démarrage de Tydom2mqtt, j'ai une erreur " SSLError(1, '[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2580)')>"
Impossible d'avoir plus de détails sur la source du problème de certificat avec la box tydom.

Le MdP tydom est constitué des 6 derniers caratères de l'adresse MAC.
Le compte tydom est bien renseigné (et fonctionnel depuis l'application Tydom).

Toutes suggestions seront appréciées :)
Merci.

2024-07-06 22:13:35,167 - Starting tydom2mqtt
2024-07-06 22:13:35,167 - Hassio environment detected: loading configuration from /data/options.json
2024-07-06 22:13:36,783 - Validating configuration ({
"deltadore_login": "XXX@yahoo.fr",
"deltadore_password": "1*******!",
"log_level": "DEBUG",
"mqtt_host": "homeassistant",
"mqtt_password": "Z********P",
"mqtt_port": 1883,
"mqtt_ssl": false,
"mqtt_user": "domotique",
"thermostat_cool_mode_temp_default": 26,
"thermostat_custom_presets": null,
"thermostat_heat_mode_temp_default": 16,
"tydom_alarm_home_zone": 1,
"tydom_alarm_night_zone": 2,
"tydom_alarm_pin": "",
"tydom_ip": "192.168.1.XXX",
"tydom_mac": "001A25xxxxxx",
"tydom_password": "d*************F",
"tydom_polling_interval": 300
}
2024-07-06 22:13:36,784 - The configuration is valid
2024-07-06 22:13:36,785 - tydom.TydomClient - DEBUG - Initializing TydomClient Class
2024-07-06 22:13:36,785 - tydom.TydomClient - INFO - Configure local mode (192.168.1.XXX)
2024-07-06 22:13:36,790 - asyncio - DEBUG - Using selector: EpollSelector
2024-07-06 22:13:36,793 - mqtt.MqttClient - INFO - Connecting to mqtt broker (host=homeassistant, port=1883, user=domotique, ssl=False)
2024-07-06 22:13:36,802 - tydom.TydomClient - INFO - Connecting to tydom
2024-07-06 22:13:37,329 - asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-2' coro=<listen_tydom() done, defined at /app/main.py:42> exception=SSLError(1, '[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2580)')>
Traceback (most recent call last):
File "/app/main.py", line 46, in listen_tydom
await tydom_client.connect()
File "/app/tydom/TydomClient.py", line 151, in connect
res = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/http/client.py", line 1386, in getresponse
response.begin()
File "/usr/local/lib/python3.11/http/client.py", line 325, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/http/client.py", line 286, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/socket.py", line 706, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/ssl.py", line 1315, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/ssl.py", line 1167, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ssl.SSLError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2580)
2024-07-06 22:13:37,343 - gmqtt.mqtt.protocol - INFO - [CONNECTION MADE]
2024-07-06 22:13:37,345 - gmqtt.client - DEBUG - [CMD 0x20] b'\x00\x00\x06"\x00\n!\x00\x14'
2024-07-06 22:13:37,346 - gmqtt.client - DEBUG - [CONNACK] flags: 0x0, result: 0x0
2024-07-06 22:13:37,346 - mqtt.MqttClient - DEBUG - Subscribing to topics (+/tydom/#)
2024-07-06 22:13:37,346 - gmqtt.mqtt.utils - DEBUG - NEW ID: 1
2024-07-06 22:13:37,346 - gmqtt.mqtt.package - INFO - [SEND SUB] 1 [b'homeassistant/status']
2024-07-06 22:13:37,347 - gmqtt.mqtt.utils - DEBUG - NEW ID: 2
2024-07-06 22:13:37,347 - gmqtt.mqtt.package - INFO - [SEND SUB] 2 [b'+/tydom/#']
2024-07-06 22:13:37,348 - gmqtt.client - DEBUG - [QoS query IS EMPTY]
2024-07-06 22:13:37,348 - mqtt.MqttClient - INFO - Connected to mqtt broker
2024-07-06 22:13:37,355 - gmqtt.client - DEBUG - [CMD 0x90] b'\x00\x01\x00\x00'
2024-07-06 22:13:37,356 - gmqtt.client - INFO - [SUBACK] 1 (0,)
2024-07-06 22:13:37,356 - gmqtt.mqtt.utils - DEBUG - FREE MID: 1
2024-07-06 22:13:37,397 - gmqtt.client - DEBUG - [CMD 0x90] b'\x00\x02\x00\x00'
2024-07-06 22:13:37,397 - gmqtt.client - INFO - [SUBACK] 2 (0,)
2024-07-06 22:13:37,397 - gmqtt.mqtt.utils - DEBUG - FREE MID: 2
2024-07-06 22:13:42,355 - gmqtt.client - DEBUG - [QoS query IS EMPTY]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant