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: [Specify if you are using self-signed certificates, CA certificates, etc.]. Please let me know if additional information or logs would be helpful for diagnosing the issue. Thank you for your assistance.
Regards, Noushad Embedded systems engineer Inthings Technologies Private Limited www.inthings.techhttp://www.inthings.tech [cid:image001.png@01DB5D28.96B30030]
Regards, Noushad Embedded systems engineer Inthings Technologies Private Limited www.inthings.techhttp://www.inthings.tech [cid:image001.png@01DB5D28.96B30030]
Noushad via mbed-tls mbed-tls@lists.trustedfirmware.org wrote: > TLS handshake fails with the error mentioned above. 4. Certificates: > [Specify if you are using self-signed certificates, CA certificates, > etc.].
And, are you using self-signed certificates, or what?
0x7280 means that the server closed the connection, likely something it didn't like... and you should probably read the server logs.
mbed-tls@lists.trustedfirmware.org