How to resolve SSL handshake failure with error code -0x7780 in STM32 SSL client integration?

Hey guys, I am currently working on integrating an SSL client into my IoT project. I've copied the SSL_Client example from STM32Cube_FW_F7_V1.15.0 into my project, and it compiles successfully. However, the SSL handshake fails with the error code -0x7780 (MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE). I would appreciate any guidance on resolving this issue. Below is the console debug output:
Solution:
You can usually find this information in the server's documentation or by using tools such as SSL Labs' SSL Test. Also, try to verify that your root CA certificates are properly loaded on the client side.
Jump to solution
5 Replies
Dtynin
Dtynin5mo ago
hey friend, @Sterling , have you tried checking if the server supports the SSL/TLS version your client is using? You might need to enable a different version of your client. Also, ensure that the cipher suites you’ve added in the client hello message are supported by the server too. this might help
Sterling
Sterling5mo ago
Hmmm @Dtynin that actually makes sense. So how do I verify the supported cipher suites and SSL/TLS versions? 🙂
Solution
Dtynin
Dtynin5mo ago
You can usually find this information in the server's documentation or by using tools such as SSL Labs' SSL Test. Also, try to verify that your root CA certificates are properly loaded on the client side.
Sterling
Sterling5mo ago
Alright @Dtynin , thanks so much for the help
Want results from more Discord servers?
Add your server