Azure / Azure/azure-iot-sdk-csharp

[Technical Question] Device provisioned with DPS always shown as "X509 self-signed" instead of "Certificate Authority"

Open
#3,360 0 comments 0 reactions 0 assignees View on GitHub
IoTSDK question
Dominant language
C#
Stars
477
Forks
492
Avg merge
9h 55m
Merged PRs (30d)
2

Description

Hello !

I try to set an Azure DPS with authentication type "x509 CA certificate". For testing, I'm using the iot-sdk-csharp and follow this [sample](https://github.com/Azure/azure-iot-sdk-csharp/tree/previews/v2/provisioning/device/samples/solutions/BestPracticeSampleX509).

Everything works except **IoT hub shown devices provisioned with DPS as "X509 self-signed" instead of "Certificate Authority"**.
![image](https://github.com/Azure/azure-iot-sdk-csharp/assets/65221297/551e2658-9da2-4c79-af57-1281362ed9ad)

With **devices directly created on IoT Hub (NOT via DPS), authenticated type are set to Certificate Authority.** This is the behavior I want to reproduce with devices created from DPS.
![image](https://github.com/Azure/azure-iot-sdk-csharp/assets/65221297/487f8ceb-c1d0-4e6d-a630-49f37f878074)

My DPS enrollment group settings:
![image](https://github.com/Azure/azure-iot-sdk-csharp/assets/65221297/bcbcff18-afdd-4c17-ade5-f1d9c8b9d542)

Do you know what I have to change in DPS for my devices to appear with "Certificate Authority" authentication type ?

Thank you for your help.
Have a nice day.

Théo

Contributor guide

Open the contributing guide

Research direction

Start with the linked BestPracticeSampleX509 sample and review the reported DPS enrollment group settings. Compare the authentication type shown for DPS-provisioned devices with devices created directly in IoT Hub, then determine whether a DPS setting or service behavior accounts for the difference. Done means identifying the required change or confirming the expected authentication type.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
authentication, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.