How can some with the steps for help me to generating certificates for device and device Identity. I want to use certificate based authentication for both

Naga Lokesh Kanumoori 0 Reputation points
2024-08-22T08:12:40.3066667+00:00

I created a device with self-signed certificate using dps.

with common name device-id

Now, I want to add module to device. here want to generate new certificate with subject device-id/module-name

Can someone please help me with the steps for generating certificates for both device and module identity.

Should i use same key for both certificates?

I'm getting when i'm trying to connect to module using this connection string

`HostName=${hostName};DeviceId=${deviceId};ModuleId=${moduleId};x509=true;`

I'm getting unauthorized.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,176 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 32,011 Reputation points MVP
    2024-08-22T10:33:27.4366667+00:00

    Hello @Naga Lokesh Kanumoori ,

    welcome to this moderated Azure community forum.

    The Azure Device Provisioning service is not well equipped for working with module identities.

    Please check this blog post on how to work around this, the same way as Microsoft is doing this for their applications.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.