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

NavinKumar VIRARAGAVAN 20 Reputation points

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.
1,536 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,015 questions
{count} votes