I have solved the error regarding why the SSL/TLS connection is not working with the ESP32. The solution is that if you are setting up a Mosquitto broker or any other broker on the server, you need to set up the TLS version as well. Currently, the TLS version in use is TLSv1.3, but if you are developing your code using the Arduino IDE, the WiFiClientSecure library only supports up to TLSv1.2. This library has not yet been updated for TLSv1.3, which is why SSL errors occur, and the ESP32 does not connect to the broker. This issue has been present since 2018 when TLSv1.3 was introduced, causing many people to face problems with SSL/TLS connections using ESP32. So, if anyone encounters SSL/TLS issues, they should first set the TLS version on the broker to 1.2 and then try again.
1 Like
thankyou bro its true and your post is very helpful for us....
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.