Warning in docs about MITM attacks for ssl
#17512
Replies: 2 comments 9 replies
-
I don't think setting Please take a look at the "std_emqxsl.py" example script at https://github.com/shariltumin/ssl-tls-examples-micropython/tree/main/Mqtt. If you are interested, you can find a short SSL/TLS tutorial at https://github.com/shariltumin/ssl-tls-examples-micropython. |
Beta Was this translation helpful? Give feedback.
-
The pycom fork is long obsolete since the company closed. Even long before that they became very different to official micropython partially due to the way they changed the licence on their version. You really cannot refer to any official docs when dealing with their port, they changed a lot of things; especially with networking. I would say it's almost definitely insecure by modern standards due to being unmaintained. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was reading the Micropython docs for the
ssl
module and came across this warning:Of course I want to make sure that my implementation is not MITM-prone. Am I correct in my understanding that as long as a port supports
cert_reqs
, and I setcert_reqs=ssl.CERT_REQUIRED
, I have a port which validates server certificates? (and thus I can "ignore" the warning)My particular application is that I am using MQTT with X.509 certificates. The port I am using is the Pycom port. The client I am using is
umqtt.robust
. And from my understanding,umqtt
passes itsssl_params
toussl.wrap_socket
.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions