Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

WiFiClientSecure can connect to SSL MQTT broker without verfication

Open mnsk opened this issue 9 years ago • 2 comments

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

mnsk avatar Jul 21 '17 13:07 mnsk

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)

copercini avatar Jul 26 '17 14:07 copercini

Closing due to merged bearssl (axtls will be deprecated).

devyte avatar Jul 13 '18 20:07 devyte