AnsweredAssumed Answered

mbedTLS Client ssl handshake failed

Question asked by panchal.ritesh on Dec 22, 2017

I am using STM32F769I-DISCO. and using STM32Cube_FW_F7_V1.8.0

I want to test mbedTLS SSL_Client example.


I am using STM32Cube_FW_F7_V1.8.0\Utilities\PC_Software\ssl_server\ssl_server.exe as SSL server in Windows 7.


With mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_OPTIONAL );

I am getting "X.509 verification failed" but got successful connection.


But with mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_REQUIRED );

I am getting "mbedtls_ssl_handshake returned -0x2700".


Please find attached Log images.

So why is it happening with the example code?