A fork of the device management project was created:
https://github.com/iviliev/cumulocity-devicemanagement-agent.git
There a new branch was created:
sendCertificateHandler
A new class was created:
send_certificate_handler.py
and a new response template was added for the sendCertificate request.
In the file DM_Agent.json
The file was uploaded into the "https://pki-integration.eu-latest.cumulocity.com/" tenant.
DM -> Device Types -> SmartREST templates -> Import template
A fork of the device management project was created: https://github.com/iviliev/cumulocity-devicemanagement-agent.git There a new branch was created: sendCertificateHandler A new class was created: send_certificate_handler.py and a new response template was added for the sendCertificate request. In the file DM_Agent.json The file was uploaded into the "https://pki-integration.eu-latest.cumulocity.com/" tenant. DM -> Device Types -> SmartREST templates -> Import template
The request looks like:
POST https://pki-integration.eu-latest.cumulocity.com/devicecontrol/operations/ body: { "deviceId" : "1472310", "c8y_SendCertificate": { "url": "https://pki-integration.eu-latest.cumulocity.com/inventory/binaries/997200" }, "description" : "Test operation" }