OSError: (-30592, 'MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE') when connecting to a websocker server #11721
-
Hey everyone, I'm trying to connect to self hosted web socket server using the code below, but the connection fails with error MicroPython version: 1.20 from https://micropython.org/download/esp32
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I would suggest verifying that mbedtls is fully working for ESP32. I had problems trying to use it 6 moths ago, maybe things have changed ... although #8940 seems to suggest that there is still work being done on it. |
Beta Was this translation helpful? Give feedback.
I think you need to indicate server hostname see #9259, however
uwebsockets
does not seem to have that option, i.e.at https://github.com/danni/uwebsockets/blob/440edabe31f85fced35d652c18d9ac26509f8bb6/uwebsockets/client.py#L22
should be like this:
If this does not work I will check that the self hosted web socket server is using a compatible version of TLS i.e. up to
TLS v1.2
and that there are common cipher-suites between the server and the client, other than that it should work 👍🏼