DTLS 1.2 using MBEDTLS; error during HANDSHAKE

Hello,

I am using MBedTLS library on my STM32 device to run a DTLS 1.2 Client. I am then communicating over a serial interface with a DTLS 1.2 Server running on Windows 11 using the openssl library. A python script is use to tunnel the message from the serial port to the UDP port of the server.

Additional info:

  • I am using PSK and no certificates.
  • The openssl server and openssl client running on a localhost are able to create a session successfully.
  • openssl version is 3.4.1

I receive an error during the handshake process. The server is unable to generate a new session ticket and tries instead to send “Server Hello” and “Server Hello Done”. Is there anything that I need to take into consideration while implementing the DTLS 1.2 client to avoid this behavior.

The communication seems to end this way,
image

BR