Arm Mbed and Pelion device management support forum

Handshake Failure

Hi Team,

I am trying to develop application (will act as a client) which will communicate (over TLS 1.2) with device (acting as a server) running (OpenSSL1.1.1a). Device’s openssl is configured with client verification setting.

I have gone through ssl_client2.cpp example and also did some modifications where i have changed “Server IP Address”, “Port Number”, Set minimum/maximum version to “MBEDTLS_SSL_MAJOR_VERSION_3”. But I am unable to make handshake successful. “mbedtls_ssl_handshake” function failed.

I have tried with both options “MBEDTLS_SSL_VERIFY_NONE” and “MBEDTLS_SSL_VERIFY_REQUIRED”.

When i debug i found “write” API return -1 when SSL state if “MBEDTLS_SSL_CLIENT_CHANGE_CIPHER_SPEC”.

Please help me to understand missing.

Thank you,