Appendix A.9 – Uploading a Certificate to IoT Hub Azure
Perform the following steps to get the device connected to the IoT hub.
- For new users, create a new Azure account.
- From the Azure homepage, select + Create a resource > Categories > Internet of Things > IoT Hub.
- In Basics tab, enter the project
details as shown in the following figure.
- Select the Subscription and Resource group for the IoT hub.
- To create a new resource group, select “Create new” and provide a custom name. Use unique alphanumeric characters for the IoT hub name.
- In the Networking tab, set
Connectivity configuration and TLS version.Note: Once the IoT hub is created, TLS version can not be updated. The user can select the default setting 1.0.
- As per the user’s choice, set access permissions from the Management, Add-ons and Tags tabs.
- Click Review + create to review choices and then select Create to start deployment of new hub.
- Go to the newly created IoT hub and select Devices under Device management from the left navigation pane.
- Click Add Device to register
your device certificate. In the Create a device window:
- Enter the Device ID. It is the ID that is given as “Issued To” in the Device Certificate (see following figure).
- Select Authentication type as “X.509 Self-Signed”.
- To get the Primary
Thumbprint and Secondary Thumbprint value:
- Double-click on the device certificate, go to Details tab and scroll down to Thumbprint.
- Copy and paste the thumbprint value to both ‘Primary Thumbprint’ and ‘Secondary Thumbprint’.
- Select Enable to connect the device to an IoT hub.
- Click Save. The device will be added to the IoT hub and it will also be displayed in the list of devices.