-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/add generation of device tls cert #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I am not sure about the logic. It appears to be opposed of what was done before. |
…e test, update openapi schema, remove generate-certificate flag
This has been addressed and changed after discussion, from commit 536e4c4 |
Devices registering to COS for devices might require the generation of certificates to be used in their apps (e.g. a TCP server running on the robot or a websocket).
This PR adds the generation of self-signed TLS certificates when a GET request is received on the
api/v1/devices/<uuid>/certificate
endpoint.The cert and key are then sent in the response.
Tests and openapi have been updated accordingly.
An example of the agent registering and retrieving certificates is available in canonical/cos-registration-agent#53.