REST API - set

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.


HTTP request

PUT https://{server}/api/esx/kms/providers/{provider}/client-certificate
    "private_key""secret string"

Path Parameters

Name Type Description
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.


HTTP Status Code: 204






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.