Reputation: 193
I'm trying to provision devices through AWS IOT api calls, i have used the AWS CLI to get CA Certificate and i have also generated X.509 certificate. Can anyone please guide me on how to Create Thing and attach certificate through SDK?
Upvotes: 1
Views: 450
Reputation: 193
I have successfully used the API to create devices on AWS IoT Core by following these steps. Using the CLI i made CA certificate using rsa key
Then i created a CSR
Registered the CA Certificate
Then i used the the verificationCert.csr for createCertificateFromCsr and used the certificateArn from response in attachPolicy and attachThingPrincipal
Upvotes: 1
Reputation: 19
You cant connect a device to AWS IoT with an API if you are trying to use HTTPS. AWS IoT specifically requires the MQTT broker on AWS IoT Core. Are you using this with a device like RPi?
Upvotes: 0