Hello there,
I would like to use robust mqtt client (https://github.com/fizista/micropython-umqtt.robust2),
and I run into an issue. I want to connect with ssl, and ssl params should be CERT_NONE, but on my implementation of micropython (wesp32 with 1.13 version of ESP-IDF v3.x, (only v3.x has lan support)) has no attribute as CERT_NONE.
Do you have some recomendation how to overcome this issue?
Thanks in advance!
ussl.CERT_NONE
Re: ussl.CERT_NONE
The docs are a bit confusing for historical reasons (the ussl module differents between different MicroPython ports, but the docs are for the CC3200 version).
On every other port, the cert_reqs argument isn't supported. You don't need to specify it.
Some improvements to ussl are currently in progress!
Re: ussl.CERT_NONE
Thats sound promising!jimmo wrote: ↑Tue Sep 15, 2020 12:16 amThe docs are a bit confusing for historical reasons (the ussl module differents between different MicroPython ports, but the docs are for the CC3200 version).
On every other port, the cert_reqs argument isn't supported. You don't need to specify it.
Some improvements to ussl are currently in progress!
I see so if I use the robust2 library insteand of this:
Code: Select all
client = MQTTClient("deviceid", "url", port = 8883, user=b"user", password=b"pass",ssl=True, ssl_params = {'cert_reqs':ussl.CERT_NONE} )
Code: Select all
client = MQTTClient("deviceid", "url", port = 8883, user=b"user", password=b"pass",ssl=True )
Code: Select all
client.is_conn_issue()
Code: Select all
MQTT (connect): OSError(12,)
True
-
- Posts: 11
- Joined: Fri Mar 04, 2022 9:47 am
Re: ussl.CERT_NONE
can you tell me whether the Unix port on OpenWRT supports TLS? I would be annoyed if I tried so much to make the socket speak TLS only to find out the methods are not implemented! Unfortunately I'm using the compiled OpenWRT version of Micropython and I have no way to see the ussl source code for myself.jimmo wrote: ↑Tue Sep 15, 2020 12:16 amThe docs are a bit confusing for historical reasons (the ussl module differents between different MicroPython ports, but the docs are for the CC3200 version).
On every other port, the cert_reqs argument isn't supported. You don't need to specify it.
Some improvements to ussl are currently in progress!