Add SDO OCS-API that creates the owner key for the user
bmpotter opened this issue · 1 comments
bmpotter commented
The new SDO owner key scenario is:
- The user (owner) indicates to the UI or the
hzn
command that they want to create a new owner key. - Internally the SDO management hub service creates the owner key pair for them and saves the private key internally in the service.
- The service returns the public key to the user. This is what they share with device manufacturers when ordering SDO-enabled devices.
- Add
POST /api/orgs/{orgid}/keys
api that creates the key pairs internally and returns the concatenated public key. The body of the api request should have the user input for creating the keys (with some defaults provided). The response body to be the concatenated public key. - Internally
import-owner-private-keys.sh
should also do the equivalent ofgenerate-key-pair.sh
- Consider implementing #101 at the same time
bmpotter commented
I tested/verified this.