This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC3220SF-LAUNCHXL: AWS IOT subscribe_publish_sample certificates

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF,

Tool/software: Code Composer Studio

Hi,

I have created an account on AWS IOT

I have created the needed certificates, policy and a "thing" and did all the recommended settings.

I also had imported the aws iot sdk for cc3220sf sample "subscribe_publish_sample" for freertos-css.

From AWS I have 4 certificates : ( created , policy attached and activated )

......xxx-certificate.pem

......xxx-private.pem.key

......xxx-public.pem.key

VeriSign-Class 3-Public....-G5.pem

and the aws  accesskeys.

What are the next steps to integrate these certificates in to the mentioned project for the CC3220SF-LAUNCHXL board ?

Any help is appreciated.

Thanks

  • Hi Rick,

    You can reference the quick start guide for the next steps.  If you become stuck, there is a helpful E2E post below as well.

  • Hi Austin,

    Thanks for your help.

    Unfortunately the link posted apply when certificates from "C:\ti\simplelink_cc32xx_sdk_1_40_01_00\tools\cc32xx_tools\certificate-playground" are used.

    In my case I used certificates created by amazon.

    After followed the Ti Resource Explorer "SimpleLink CC32XX SDK AWS IoT Plugin guide"

    I got this output from serial port :

    CC3220 has connected to AP and acquired an IP address.

    IP Address: 192.168.1.8

    Current time: Mon Jan  1 17:42:16 1900

    Flashing certificate file ...

    successfully wrote file /cert/ca.der to flash

    Flashing certificate file ...

    successfully wrote file /cert/cert.der to flash

    Flashing certificate file ...

    successfully wrote file /cert/key.der to flash

    AWS IoT SDK Version 2.1.1-

    Connecting...

    ERROR: runAWSClient L#108

    Error(-24) connecting to abcd1234...xyzi.iot.us-east-1.amazonaws.com:8883

    Subscribing...

    ERROR: runAWSClient L#126

    Error subscribing (-13)

    ERROR: runAWSClient L#178

    An error occurred in the loop. Error code = -13

     

    The current time states 1900 and Jan 1.

    I have no clue why. I think this is the reason why the TLS handshaking fails.

    Any help would be appreciated.

     

    Thanks

  • I forgot to mention that on the AWS side my policy is:

    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Effect": "Allow",
    "Action": "iot:*",
    "Resource": "*"
    }
    ]
    }
  • Anyone having this kind of issue with the CC3220SF-LAUNCHXL and the aws subscribe-publish sample from the amazon sdk?

    Thanks
  • Hi Rick,

    Please find the suggestion for this issue on your duplicate thread below: