Before you configure Link SDK, you must obtain device authentication information. This article describes how to obtain device authentication information.

Prerequisites

A product is created and the Authentication Mode parameter of the product is set to Device Secret. For more information, see Create a product.

Background information

A device must pass identity authentication before it can be connected to IoT Platform. For more information about identity authentication, see Overview.

You can obtain device authentication information based on authentication methods. The following authentication methods are available:

Obtain information for unique-certificate-per-device authentication

The unique-certificate-per-device verification method is recommended because of its high level of security.

You can obtain authentication information by using the following methods. The information includes ProductKey, DeviceName, and DeviceSecret.

  • Create a device in the IoT Platform console and obtain the device authentication information. For more information, see Create a device and Create multiple devices at a time.

    After you create a device, you can click View next to DeviceSecret on the Device Details page to view the device authentication information.

  • Call the API operation to create a device and obtain the device authentication information. For more information, see RegisterDevice.

    After you create a device, you can also query the device authentication information. For more information, see QueryDeviceDetail.

Obtain information for unique-certificate-per-product authentication

You can perform the following steps to obtain device authentication information.

  1. Enable dynamic registration. On the Product Details page of an existing product, turn on Dynamic Registration.
    IoT Platform sends an SMS verification code to verify your identity.
    Note If dynamic registration is disabled when devices initiate activation requests, IoT Platform rejects the requests. Activated devices are not affected.
    Enable dynamic registration
  2. Obtains device authentication information based on authentication methods.
    • Pre-registration unique-certificate-per-product authentication

      Add a device to a product in IoT Platform, and then obtain the device authentication information. For more information, see Obtain information for unique-certificate-per-device authentication.

    • Preregistration-free unique-certificate-per-product authentication

      You do not need to add a device to a product in IoT Platform. The device uses Link SDK to initiate a dynamic registration request and carries ProductKey, ProductSecret, and DeviceName in the request. The ClientID and DeviceToken parameters are returned and used as device authentication information.

    For more information about unique-certificate-per-product authentication, see MQTT-based dynamic registration and HTTPS-based dynamic registration .