Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: AWS IOT root certificate #2501

Open
calvernaz opened this issue Apr 18, 2022 · 2 comments
Open

question: AWS IOT root certificate #2501

calvernaz opened this issue Apr 18, 2022 · 2 comments

Comments

@calvernaz
Copy link

Hi, we are looking into the sming framework and specifically the MQTT implementation to connect the device to AWS IoT Core and in order for that communication to be successful, we need to set up TLS and the root authority certificate. We can’t find the correct API to assign a root certificate to the session. Do you have an example of how to do it?

The example you provide in the repository doesn't seem to use the authority certificate from Amazon, even though they are in the repo but no references to it.

@slaff
Copy link
Contributor

slaff commented Apr 19, 2022

@calvernaz We have a sample that is demonstrating the use of Amazon AWS. The keys and certificates are loaded in application.cpp lines 14 until 16.

https://github.com/SmingHub/Sming/blob/develop/samples/Basic_AWS/app/application.cpp#L14-L16

And then assigned in line 23:

https://github.com/SmingHub/Sming/blob/develop/samples/Basic_AWS/app/application.cpp#L23

The files are in the files/ directory of the sample and they MUST be in the binary DER format and not in text readable PEM format.

@calvernaz
Copy link
Author

Hi @slaff thanks for the quick response, but so I totally understand, in those code bits I only see the use of the private key and the certificate and no use of the root certificate (AmazonRootCA1.pem.der).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants