vcenter certificate authority certificate: generate keys
Generate the public and private key pair for given keysize. Warning: This operation is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.
Request:
HTTP request
POST https://{server}/rest/vcenter/certificate-authority/certificate?action=generate-keys
Request Body Structure:
{
"key_size" : 1
}
"key_size" : 1
}
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
key_size | long | Optional. for which key pair is to be generated. |
Response:
HTTP Status Code: 200
Representation:
{
"value" : [
"string",
"string"
]
}
"value" : [
"string",
"string"
]
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | string[] | public and private key in String format. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
400 | invalid_argument | if provided argument is not correct. |
500 | internal_server_error | if error happen on server side. |
500 | error | If the system failed to return the signed certificate. |