Here is the scenario:
- The device calls the endpoint(Function App/WebService) with some device information.
- The endpoint will have embedded intermediate certificate(X509)(created using root cert) this intermediate certificate is uploaded to the enrollment group
- The endpoint will create device id and leaf certificate for device and call the DPS service(using DPS sdk) to register the device
- DPS registers the device successfully.
Now, the endpoint needs to return some information to the device that'd tell the device that it has been provisioned and registered in the iothub and it can start sending the telemetry.
I am not sure what the device will require in this step. If we use symmetric key, we'd normally use the device id and symmetric key to create device client and use device client to send device to cloud messages.
