Connect to Pelion Device Management

Step 3: Grant the application access to your Pelion Device Management account.

To connect to your Pelion Device Management account securely, your device needs unique identity and connection parameters. For remote firmware update, your device also needs an update certificate.

For development use cases only, you can use the Online Compiler to generate a developer connect certificate (for identity and connection) and a developer update certificate (for firmware update). For production use cases, you would use offline tools to generate these certificates and store them securely.

  1. If this is your first time using the Pelion Device Management API, you will need to generate an API key. You can do this by visiting Pelion Device Management Portal, which will automatically generate an API key. Once this is done, return to the Online Compiler and continue with the guide.
  2. In the Online Compiler, ensure the example application is selected and then click Pelion Device Management > Manage Connect Certificates.
  3. You will be prompted to provide an API key. Provided you have already logged into Pelion Device Management Portal as detailed above, your API key will be populated. Click OK to continue.
  4. The Certificates window is displayed. Click Create, enter a name for the developer connect certificate and then click OK.
  5. Select the certificate you have just created and click OK. A warning message informing you that this action will override the existing connect certificate file is displayed; click OK to add the file to your application.
    When you run the application on your device, the bootstrap server will use this developer connect certificate to authenticate your application with your Pelion Device Management account.
  6. Click Pelion Device Management > Apply Update Certificate. The Update Certificates window is displayed. Click Create. A warning message informing you that this action will override the existing update certificate files is displayed; click OK to add the files to your application and generate the corresponding private key.
  7. Download the private key and store it securely. You will need the private key to sign the firmware update manifest so that you can update the device with Pelion Device Management.