You can add a key by running the Add key workflow of the Configuration plug-in or by using the REST API.
Procedure
- Make a GET request at the URL of the Workflow service of the Add key workflow.
GET https://{orchestrator_host}:{port}/vco/api/workflows?conditions=name=Add key
- Retrieve the definition of the Add key workflow by making a GET request at the URL of the definition.
GET https://{orchestrator_host}:{port}/vco/api/workflows/6c301bff-e8fe-4ae0-ad08-5318178594b3/
- Make a POST request at the URL that holds the execution objects of the Add key workflow.
POST https://{orchestrator_host}:{port}/vco/api/workflows/6c301bff-e8fe-4ae0-ad08-5318178594b3/executions/
- Provide the keystore, key alias, PEM-encoded key, certificate chain and key password as input parameters of the Add key workflow in an execution-context element in the request body.