Tasmota Enable TLS

I am trying to enable a secure connection between my Tasmota devices my Mosquitto MQTT add-on.
I have the SSL set up and validated (accessed via MQTT Explorer coming in through port 8883)

I am running Home Assistant 2023.3.5, Supervisor 2023.03.1 with the Mosquitto MQTT Add-On

I am stuck on enabling FingerPrinting in a Tasmota device. I am running Tasmota version 12.4.0 and I have set the port to 8883, enabled both SetOptions below, and entered the MQTT_FINGERPRINT1 command:
SetOption103 to 1 <= Set TLS mode when TLS is selected
SetOption132 to 1 <= Fingerprint
#define MQTT_FINGERPRINT1 “00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00”

After reset the console shows: Connect failed to 192.168.8.24:8883, rc -4. Retry in xx sec.

The HA log shows:
2023-03-18 16:03:58: New connection from 192.168.8.134:54435 on port 8883.
2023-03-18 16:03:58: OpenSSL Error[0]: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Hi @OrangeLoon. Yesterday I made it work by trial and error. Is just that the documentation when says #define MQTT_FINGERPRINT1 "00 00.." is talking about compilation options, but we are doing stuff using the WebUI console!

To set MQTT_FINGERPRINT1 on console, the command is:

MqttFingerprint1 00

And to see what is there, you can do MqttFingerprint1 alone. I got the following result, for example:

12:43:54.226 CMD: MqttFingerprint
12:43:54.240 MQT: stat/tasmota_C32284/RESULT = {"MqttFingerprint1":"38 BF 8E FA AF 3D 7E 3E AA 54 77 F8 BB BA 45 1F 22 9C B2 7B"}
12:44:03.094 CMD: MqttFingerprint2
12:44:03.107 MQT: stat/tasmota_C32284/RESULT = {"MqttFingerprint2":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"}

So, to set the SSL for autodiscover the fingerprint, that worked for me, iiuc:

SetOption103 1
SetOption132 1
MqttFingerprint2 00
MqttFingerprint1 00

That will set the MQTT_FINGERPRINT1 and MQTT_FINGERPRINT2 to “00 00 00…”.

Then I rebooted and it worked.

Hope it to help you. Good luck.