Can two or more devices share the same device x509 certificates?

Haris Papageorge 246 Reputation points
2024-01-26T13:03:04.7533333+00:00

I know this is not advised but I was wondering if it's possible. Will one device drop if the second one tries to connect at the same time?

thanks

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

1 answer

Sort by: Most helpful
  1. Sander van de Velde 29,196 Reputation points MVP
    2024-01-26T20:04:59.5566667+00:00

    Hello @Haris Papageorge, welcome to this moderated Azure community forum. Azure IoT supports device authentication using X509 certificates:

    The device certificate (also called a leaf certificate) must have its common name (CN) set to the device ID (CN=deviceId) that was used when registering the IoT device in Azure IoT Hub. This setting is required for authentication.

    As you can see, the device/leaf certificate is related to the Azure IoT Hub device ID using the 'cn=deviceId'. Thus, you are not able to use the same certificate for multiple devices. If for some reason two devices with the same deviceId-X509 certificate combination try to connect to IoT Hub, this will result in unreliable connections, probably on both devices.

    ---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.

    1 person found this answer helpful.
    0 comments No comments