REST API - create

esx kms providers client certificate csr: create

Generate a certificate signing request (CSR) for the client certificate. This overwrites any existing CSR.

The CSR will allow the certificate to be signed by a third party. Once the CSR is signed, certificate may be added as a client certificate.

Calling the API repeatedly will result in a generating a new CSR each time.

Request:

HTTP request

POST https://{server}/api/esx/kms/providers/{provider}/client-certificate/csr

Path Parameters

Name Type Description
Required
provider string Identifier of the provider.

Response:

HTTP Status Code: 201

Response Body Structure:

{
    "csr""string",
    "private_key""secret string"
}

Headers:

None

Type:

Name Type Description
bold = required
- info A structure containing the CSR.
-.csr string Certificate Signing Request.

PEM format.

-.private_key secret Private key.

PEM format.

Optional. If unset, privateKey won't have key data.

Errors:

HTTP Status Code Type Description
400 invalid_argument if the 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.