Skip to content

Setting up AWS Security Certificates, readme is incorrect for various WiseConnect SiWx917 projects #29

@rpugel-pd

Description

@rpugel-pd

The instructions are incorrect in the readme / Setting up Security Certificates / for various Wi-Fi AWS example projects and the general WiseConnect 3 documentation

Image

in this github for the AWS device shadow
https://github.com/SiliconLabs/wiseconnect/tree/master/examples/featured/aws_device_shadow
there is a link to Additional Information,
https://github.com/SiliconLabs/wiseconnect/tree/master/examples/featured/aws_device_shadow#additional-information

Setting up Security Certificates and Create AWS Thing
where the readme shows the arrayname parameter to be aws_device_certificate and aws_private_key

However, in the AWS DEVICE SHADOW project, throughout app.c, the array names are
aws_client_certificate[] // not aws_device_certificate
and
aws_client_private_key[] // not just aws_private_key

and a little further down in app.c, the #include macros look for those filenames that end with .pem.crt.h and .pem.key.h

Although the repo’s library files under the resources/certificates/ folder contains these .pem. files, they are not the ones recreated with the python script. So without careful attention, the project builds but with the wrong certificate files.

So, the readme needs to be corrected as shown in the attached image.

This needs to be done in at least four places in the Github repository
General WiseConnect WLAN/Cloud Apps
https://github.com/SiliconLabs/wiseconnect/tree/master/examples/snippets/wlan/cloud_apps/aws/mqtt#setting-up-security-certificates

AWS Device Shadow project
https://github.com/SiliconLabs/wiseconnect/blob/master/examples/featured/aws_device_shadow/readme.md#setting-up-security-certificates

BLE Wi-Fi Provisioning with AWS IoT MQTT project
https://github.com/SiliconLabs/wiseconnect/blob/master/examples/snippets/wlan_ble/wifi_station_ble_provisioning_aws/readme.md#setting-up-security-certificates

Wi-Fi - AWS IoT MQTT Client project
https://github.com/SiliconLabs/wiseconnect/blob/master/examples/snippets/wlan/cloud_apps/aws/mqtt/readme.md#setting-up-security-certificates

I struggled with this for quite a while, so hopefully fixing this will help others trying to get those AWS demos to work.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions