I am trying to use the ESP8266 as a mqtt client sending messages over ssl, but I get the folowing error:
TCP: Connect to ip 192.168.0.18:8883
Connecting with 2 way authentication
MQTT: HEAP size: 16696
MQTT: espconn_secure_set_size: 1
please start sntp first !
MQTT: espconn_secure_connect: 0
mprivate_key 260
certificate 2af
client handshake start.
client handshake failed
Error: invalid protocol message
TCP: Reconnect to 192.168.0.18:8883
pm open,type:2 0
From the server I can see that the I get:
Hanshake failure (40)
I looks like the key and certificate are picked, the espconn_secure_connect returns 0 (success), but then the handshake fails, it looks like the server and client are not agreeing on the cypher to use.
Also, I wanted to know whether espconn_secure API is based on SSL or mbedtls library? How can I find out? Can I select which one it uses?
Thanks in advance for your help