NavigationContentFooter
Suggest an edit

How to enable device auto-provisioning

Reviewed on 13 November 2024Published on 01 September 2019

Enabling device auto-provisioning will automatically create missing devices in your hub when they supply valid TLS information. The certificate chain will be verified against the custom certificate authority of the target hub. If there is no device with the same name as the device certificate Common Name (CN), a device with that CN will be created on this hub.

This enables industrial use cases, where the secure element provider issues certificates itself on its production lanes, and burns them directly into the chips. The secure element provider will use intermediate certificates signed by a certificate authority, which along with the generated certificate will create a full TLS certificate chain. After installing the Certificate Authority in a hub and enabling device auto-provisioning, the previously unseen device will be able to connect to the hub without having to manually provision it. In this use case, the common name of the generated certificate will be the serial number of the secure element.

Created devices have the following properties:

  • Name: Equal to the Common Name of the device certificate.
  • Description: A message that states the IP address that provisioned the device.
  • Message filters: None, all messages & subscriptions allowed.
  • Allow insecure: False. As the security relies on the use of mTLS, it is not possible to connect with this device using insecure connections.
  • Allow multiple connections: False. The certificate should represent a unique physical device.

Before you start

To complete the actions presented below, you must have:

  • A Scaleway account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization
  • Created an IoT Hub
  • Created a custom certificate authority
  1. Click IoT Hub in the Managed Services section of the side menu. A list of your IoT Hubs displays.

  2. Click on the hub on which to enable the device auto-provisioning.

  3. Scroll down to the Device Auto-Provisioning panel and slide the «Toogle Icon» toggle to Enabled.

    When auto-provisioning is enabled, IoT Hub will try to add new devices upon first connection. A Hub Event will be raised upon success or failure.

See also
How to view metricsHow to change the product plan
Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2024 – Scaleway