X.509 certificate in Azure APIM and azure Device Provisioning service

NavinKumar VIRARAGAVAN 20 Reputation points
2023-04-27T13:29:15.3433333+00:00

I am trying to use same X.509 device certificate for authenticating IOT DPS and API management. Problem is DPS docs mentioning - registation_id of the device must match the subject common name in the device certificate, So we need to put unique ID in each device certificate then DPS provisioning works well.

But if we try to use same certificate in APIM , It is not working. APIM expecting common name has to be same for root, intermediate and client certificates. (I am using our domain name as common name).

Please let me know how I can modify APIM policy to use same client certificate on both APIM and DPS.

context.Request.Certificate == null  || !context.Request.Certificate.Verify()
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,130 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,190 questions
{count} votes

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.