How to get x.509 certificate from Azure DPS using enrollment ID (registeredid) and thumbprint

Shashikant Nalavade 21 Reputation points
2022-03-02T07:47:31.153+00:00

I want to download the certificate that has used to create enrollment. This certificate will be downloaded by using registeredid and thumbprint.

179140-image.png

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
208 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,031 Reputation points
    2022-03-02T23:48:37.35+00:00

    Hello @Shashikant Nalavade what is the scenario(any error?) you are trying to solve, just wanted to understand the issue better.

    Docs IoT Hub Device Provisioning Service Dps Certificate Overview

    179395-image.png

    DPSGetCertificate

    GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/provisioningServices/myFirstProvisioningService/certificates/cert?api-version=2018-01-22  
    

    Response:

    {  
      "properties": {  
        "subject": "CN=testdevice1",  
        "expiry": "Sat, 31 Dec 2039 23:59:59 GMT",  
        "thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",  
        "isVerified": false,  
        "created": "Thu, 12 Oct 2017 19:23:50 GMT",  
        "updated": "Thu, 12 Oct 2017 19:23:50 GMT"  
      },  
      "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/andbuc-hub/certificates/cert",  
      "name": "cert",  
      "type": "Microsoft.Devices/ProvisioningServices/Certificates",  
      "etag": "AAAAAAExpNs="  
    }  
    
    0 comments No comments