How-To: Enable Azure IoT Hub Certificate Authentication in EZCA

In this page we give access to EZCA you your Azure IoT Hub, enabling one click certificate authentication with Azure IoT Hub without manual intervention or scripting.

Enable Azure IoT Hub Access For Certificate Authentication in EZCA

If you are using EZCA for Azure IoT and would like to EZCA to automatically add new CA certificates to Azure IoT, EZCA must to have Contributor role access to your IoT Hubs. With this access, EZCA will be able to automatically add new CA certificates to your IoT Hubs, and rotate your CAs when they expire. If you would also like EZCA to disable your IoT devices when a certificate is revoked, EZCA must also have the IoT Hub Registry Contributor role on your IoT Hubs as well.

Prerequisites

Add the RBAC Contributor Role to Azure IoT Hub

  1. Login to https://portal.azure.com

  2. Navigate to the IoT Hub you want EZCA to manage.

  3. Click on the Access control (IAM) menu option

    Azure IoT Hub overview page with Access control IAM option in left navigation menu

  4. Click on + Add

    Azure IoT Hub Access control IAM page with Add button highlighted to add role assignment

  5. Select the Add Role Assignment Option

  6. Select the Privileged administrator roles tab

    Azure IAM Add privilege role

  7. Select Contributor role

    Azure Add Role Assignment showing Contributor role selected for IoT Hub access

  8. Click on Members

    Azure Add Role Assignment Members tab with Select members highlighted for user principal search

  9. Click on Select Members

    Azure Add Role Assignment Members tab showing Select members panel with no members selected

  10. Search for “keytos” and select the Keytos Application

    Azure Select members panel showing Keytos application highlighted in search results

  11. Click the Select button

    Azure Add Role Assignment Members tab with Keytos application selected and Select button highlighted

  12. Click the Review + assign button

    Azure Add Role Assignment review showing Contributor role assigned to Keytos application

  13. Click the Review + assign button

    Azure Add Role Assignment final review confirmation showing role scope and Keytos member

Add the IoT Hub Registry Contributor Role to Enable Revocation

  1. Once You are back in the Access Control (IAM) screen, click on + Add

    Azure IoT Hub Access control IAM page with Add button highlighted to add role assignment

  2. Select the Add Role Assignment Option

  3. Select the IoT Hub Registry Contributor role

    Azure IAM contributor

  4. Click on Select Members

    Azure Add Role Assignment Members tab showing Select members panel with no members selected

  5. Search for “keytos” and select the Keytos Application

    Azure Select members panel showing Keytos application highlighted in search results

  6. Click the Review + assign button

    Add Iot Hub Registry Contributor To Enable Revocation

  7. Click the Review + assign button