Edit

Set up a managed root and intermediate CA (preview)

This article explains how to create root and intermediate certificate authorities within your Azure Device Registry namespace. Use this workflow if you want Azure Device Registry to provision certificate authorities in Microsoft cloud PKI on your behalf.

Important

Azure IoT Hub with Azure Device Registry integration and Microsoft-backed X.509 certificate management is in public preview and isn't recommended for production workloads. For more information, see FAQ: What is new in IoT Hub?.

For information about how the root and intermediate CAs establish trust, see CA hierarchy in Azure Device Registry.

Prerequisites

Before you begin, make sure you have:

Set up the certificate authorities

Use the Azure portal or Azure CLI to create root and intermediate certificate authorities.

Create a root CA

  1. In the Namespaces list, select your namespace.

  2. Under Security, select Certificate Authorities.

  3. Select Create. Root Certificate Authority is disabled if the namespace already has one root CA by default.

    Screenshot of the credential policies portal page showing the option to create a policy.

  4. Select Root Certificate Authority.

  5. Give the certificate authority a name that is 3-63 characters in length, then select Create.

  6. Wait for Azure to finish provisioning the root CA. When provisioning is complete, the resource appears on the Certificate Authorities page.

Create an intermediate certificate authority

  1. On the Certificate Authorities page, select Create.

  2. Select Intermediate Certificate Authority.

  3. Select Use this namespace's Root CA, enter a name for the intermediate CA, and then select Create. After you create an intermediate CA, you must create a certificate policy before you can issue device certificates. For instructions, see Create or edit a certificate policy.