Hello,

I am currently working on a project using STM32CubeIDE, where I am leveraging mbedTLS v2.16.2 to establish a secure MQTT connection with a Mosquitto broker on port 8883.

During my implementation, I encountered a TLS handshake error with the following details:

mbedtls_ssl_handshake failed. -29312 (-0x7280)

I would like to confirm if mbedTLS v2.16.2, as provided in STM32CubeIDE, supports secure TLS connections (e.g., Secure MQTT) and is compatible with Mosquitto broker configurations. Additionally, I would appreciate guidance on resolving this error.

Here are some specific details about my setup:

  1. mbedTLS version: 2.16.2 (as integrated into STM32CubeIDE).
  2. Broker: Mosquitto, configured for secure MQTT on port 8883.
  3. Issue: TLS handshake fails with the error mentioned above.
  4. Certificates: [CA certificates, ].

Please let me know if additional information

 

 Regards,

Noushad

Embedded systems engineer

Inthings Technologies Private Limited

www.inthings.tech