-->
Page 1 of 1

ESP8266 non-os-sdk Secure Sockets Layer (SSL) debugging

PostPosted: Mon Apr 01, 2019 9:42 am
by maverickchongo
Hi,

I am trying to get mqtt client working with a SSL but the connection to the boker is failing, is there any way to switch some debugging on the espconn API as I can't get enough information on why the connection is failing?

I couldn't find anything in the below manual:

https://www.espressif.com/sites/default ... ual_en.pdf

These are exactly the errors I am getting:

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)

Thanks in advance for any help

Re: ESP8266 non-os-sdk Secure Sockets Layer (SSL) debugging

PostPosted: Tue Apr 02, 2019 5:05 pm
by davydnorris
See my reply to your duplicate post in the other forum