Hi,
I’m trying to open a TCP socket over SSL/TLS in order to use MQTT protocol on it.
Here below the sequence of AT commands:
AT+KCERTSTORE=0,1558,0
AT+SSLCRYPTO=5,1,1,8192,64,7,1
AT+KCNXCFG=1,“gprs”,“internet”
AT+KTCPCFG=1,0,“server_url”,“server_port”,1,1,5
AT+KTCPCNX=1
Modem clock has been set via
AT+CCLK=“yy/mm/dd,hh:mm:ss+00”
If inside KTCPCFG command is 0 (client), TCP connection never works even if the certificate has been correctly stored. If is 3 (secure client), TCP connection always works even if I delete the certificate.
How to correctly setup a TCP over SSL socket with server authentication? Sequence of AT commands of a full working example should be really appreciated.
Thanks in advance,
Sabino