SSL handshake on client state: 12

Hi,

We are facing the issue SSL handshake is failed during step (SERVER_CHANGE_CIPHER_SPEC) client state: 12, from the below log line ssl->f_recv(_timeout)() returned 0 (-0x0000) it indicated that 0 byte were received from the server side.

This is occur in sometimes, sometime SSL handshake is success without any problem.
Just wonder that this is coming from Server side issue or client side issue ?
Can anyone help me ?

[2022-03-23 15:47:23.859] ssl_tls.c:2439: |2| message length: 85, out_left: 85
[2022-03-23 15:47:23.874] ssl_tls.c:2445: |2| ssl->f_send() returned 85 (-0xffffffab)
[2022-03-23 15:47:23.891] ssl_tls.c:2464: |2| <= flush output
[2022-03-23 15:47:23.906] ssl_tls.c:2854: |2| <= write record
[2022-03-23 15:47:23.937] ssl_tls.c:5144: |2| <= write finished
[2022-03-23 15:47:23.937] ssl_cli.c:3279: |2| client state: 12
[2022-03-23 15:47:23.937] ssl_tls.c:2420: |2| => flush output
[2022-03-23 15:47:23.937] ssl_tls.c:2432: |2| <= flush output
[2022-03-23 15:47:23.952] ssl_tls.c:4533: |2| => parse change cipher spec
[2022-03-23 15:47:23.968] ssl_tls.c:3732: |2| => read record
[2022-03-23 15:47:23.968] ssl_tls.c:2212: |2| => fetch input
[2022-03-23 15:47:23.984] ssl_tls.c:2370: |2| in_left: 0, nb_want: 5
[2022-03-23 15:47:24.031] ssl_tls.c:2394: |2| in_left: 0, nb_want: 5
[2022-03-23 15:47:24.047] ssl_tls.c:2395: |2| ssl->f_recv(_timeout)() returned 0 (-0x0000)
[2022-03-23 15:47:24.066] ssl_tls.c:3793: |1| mbedtls_ssl_fetch_input() returned -29312 (-0x7280)
[2022-03-23 15:47:24.086] ssl_tls.c:3738: |1| mbedtls_ssl_read_record_layer() returned -29312 (-0x7280)
[2022-03-23 15:47:24.166] ssl_tls.c:4537: |1| mbedtls_ssl_read_record() returned -29312 (-0x7280)
[2022-03-23 15:47:24.166] ssl_tls.c:6354: |2| <= handshake

Regards,

1 Like