Expand description

An implementation of the “Provisioning by Claim” workflow of the Fleet Provisioning feature of AWS IoT Core.

  1. Establishes an MQTT connection with AWS IoT Core using the Claim Credentials (general certificate).
  2. Generates a Key Pair.
  3. Calls the CreateCertificateWithCsr MQTT API to request a certificate for the Certificate Signing Request of the key-pair generated.
  4. Calls the RegisterThing MQTT API to create an AWS IoT Thing with the provisioned certificate.
  5. After getting provisioned with a new certificate, creates a new MQTT connection with AWS IoT Core with the new provisioned credentials. Entry point: ‘pub async fn fleet_provisioning() -> Result<(), Box>’

Functions

Entry poing for the workflow of Fleet Provisioning.