Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

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

Open
iviliev opened this issue Jun 29, 2022 · 1 comment
Assignees
Labels
BE Backend related implementation
Milestone

Comments

@iviliev
Copy link
Contributor

iviliev commented Jun 29, 2022

No description provided.

@iviliev iviliev self-assigned this Jun 29, 2022
@iviliev iviliev added this to the Priority 0 milestone Jun 29, 2022
@iviliev iviliev added the BE Backend related implementation label Jun 29, 2022
@iviliev
Copy link
Contributor Author

iviliev commented Jul 4, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
BE Backend related implementation
Projects
None yet
Development

No branches or pull requests

1 participant