Using emulated EEPROM for key provisioning in Amazon FreeRTOS

lesudu wrote on May 28, 2018:

Hello,
I have already tested the Certificate-key with Hello world demo in windows simulator. It is working fine and I am using the same for Micro controller ported code.

Error I see is whenever the Handshake works properly, Sockets_Connect() is returning -128, which means socket is already been closed.

As I am sure about using correct key and certificate, the problem cannot be this. However, i am using the default root certificate. Can that be an issue by any chance?

I am using mbedTLS library working with Amazon FreeRTOS Simulator without any considerable modifications. I do not have a serial console output yet, but I will check with verbose debug options with mbedTLS when I have it running.

Depending on the information given, can you make out anything so that it can be solved asap?
Thanks in advance!

Regards,
Sudarshan