SoftwareAG / cumulocity-pki-integration

Cumulocity pki integration
0 stars 1 forks source link

Define and implement c8y_SendCertificate operation for sending certificate from microservice to device #132

Open iviliev opened 2 years ago

iviliev commented 2 years ago

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" }