3 Replies Latest reply on Mar 5, 2020 5:04 AM by AlRo_1301416

    Cannot connect to AWS IoT using mBED example

    AlRo_1301416

      I've been working on this for a couple hours now, and I think I've found the root of the issue. When using mbed-os-example-aws-iot-client/publisher, the aws_config.h shows examples for how the credentials should look. The private key and root cert are fine, but the client cert is not the correct length.

      mbedissue.png

      I am not sure if AWS have changed the client certificate format, but this is the only thing I can find that is causing the errors I am getting:

      mbedissue2.png

      Any advice or ideas would be greatly appreciated! I also tried using the FreeRTOS example but was having the same issue -- in that case, the error was more specific and said TLS had failed. This would make sense if the code is only sending part of the certificate, instead of the entire thing. I'm not sure if maybe the code is expecting us to convert the xxxxxxxxx-certificate.pem.crt file into a different format, but nowhere in the instructions does it say to do so?

      Having the same issue with both the CY8CPROTO-062-4343W and the CY8CKIT-062-WIFI-BT.

      Cheers,

      Alexander