WiFiClientSecure can connect to SSL MQTT broker without verfication
Basic Infos
Hardware
Hardware: ESP-12 Core Version: 2.3.0
Description
I was trying to connect my esp with username and password authenticated SSL MQTT broker using root CA certificate as verification and was having issue with setCACert() and WiFiManger. So I decided to test with fingerprint verification and it worked. But when I removed all kind of verification I was still able to connect with my broker on port 8883. I tried with different clients like android, linux etc. and none was able to connect without root CA certificate. So how come esp could connect without verification?
Settings in IDE
Module: NodeMcu v3 Flash Size: 4MB CPU Frequency: 1600Mhz Flash Mode: ?qio? Flash Frequency: ?40Mhz? Upload Using: SERIAL Reset Method: nodemcu
It's your option verify if you are talking with the real server or it doesn't matter... I highly recommend verify it with CA certificate instead of bypass (the other clients don't connect if they can't verify, to not send data to an unknown server)
Closing due to merged bearssl (axtls will be deprecated).