esx kms providers client certificate: set
Set the client certificate.
The key management server will use this certificate to validate the client connection. If a client certificate already exists, it will be replaced.
An optional private key can be specified if the certificate has already been provisioned.
Request:
HTTP request
PUT https://{server}/api/esx/kms/providers/{provider}/client-certificate
{
"certificate" : "string",
"private_key" : "secret string"
}
"certificate" : "string",
"private_key" : "secret string"
}
Path Parameters
Name | Type | Description |
---|---|---|
Required | ||
provider | string | Identifier of the provider. |
Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
- | set_spec | Specification describing new certifiate and private key. |
-.certificate | string | Certificate. PEM format. |
-.private_key | secret | Private key. Optional. If unset upload request is for a signed CSR. |
Response:
HTTP Status Code: 204
Headers:
NoneType:
NoneErrors:
HTTP Status Code | Type | Description |
---|---|---|
400 | invalid_argument | if the certificate or private key is invalid or provider Id is empty. |
404 | not_found | if the provider is not found. |
401 | unauthenticated | if the caller is not authenticated. |
403 | unauthorized | if the caller is not authorized. |
500 | error | if any other error occurs. |