X.509 certificate in Azure APIM and azure Device Provisioning service
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()