0 Replies Latest reply on Mar 23, 2017 7:25 AM by badic_1722426

    TLS and azure mqtt broker


      Hi everyone,


      We try to connect to the azure server, using the last SDK 4.0.1 and we cannot connect because the TLS crash during the handshake (there is no error but the soft block during the hanshake and the product is resetted by the watchdog). We are using the secure-mqtt demo with our server and credential.


      my trace :


      Starting WICED v4.0.1

      Platform BCM9WGLUE114 initialised

      Started ThreadX v5.6

      Initialising NetX_Duo v5.7_sp2

      Creating Packet pools

      WWD SDIO interface initialised

      WLAN MAC Address : 6C:0B:84:76:61:F7

      WLAN Firmware    : wl0: Oct  6 2016 01:32:44 version FWID 01-f5e34b04

      Joining : Bougatsa2

      Successfully joined : Bougatsa2

      Obtaining IPv4 address via DHCP

      DHCP CLIENT hostname WICED IP

      IPv4 network ready IP:

      Setting IPv6 link-local address

      IPv6 network ready IP: FE80:0000:0000:0000:6E0B:84FF:FE76:61F7

      Resolving IP address of MQTT broker...

      Resolved Broker IP:


      MQTT init

      MQTT init semaphore

      [MQTT] Opening connection...

      Begin lib mqtt connect

      [MQTT LIB] : create socket

      [MQTT LIB] : init certificate

      [MQTT LIB] : enable tls

      [MQTT LIB] : network connect

      Start TLS connection

      SSl INIT

      check root certificate

      check root certificate done

      handshake state 0..

      handshake .. 0

      handshake state 1..

      handshake .. 0

      handshake state 2..

      handshake .. 0

      handshake state 3..

      handshake .. 0

      handshake state 4..

      handshake .. 0

      handshake state 5..

      handshake .. 0

      handshake state 6..

      handshake .. 0

      handshake state 7..


      => after several seconds the module restart.


      We have try with

      tls_version_num_t tls_maximum_version = TLS1_2;




      tls_version_num_t tls_maximum_version = TLS1_1;


      But we had the same result.


      Do you have any ideas ? why the TLS crash during the 7th state of the handshake.


      I can share my code in private, if you want.


      Best regards