Vcenter CertificateManagement Vcenter SigningCertificate set

Vcenter CertificateManagement Vcenter SigningCertificate set

Set the active signing certificate for vCenter. The certificate will immediately be used to sign tokens issued by vCenter token service.

This operation was added in vSphere API 7.0.3.0.

Returns an authorization error if you do not have all of the privileges described as follows:

  • Operation execution requires CertificateManagement.Administer.
Request
URI
PUT
https://{host}/api/vcenter/certificate-management/vcenter/signing-certificate
COPY
Request Body

Signing certificate chain and private key which the vCenter token service will actively use to sign tokens.

Show optional properties

{
    "signing_cert_chain": {},
    "private_key": "string"
}
{
    "signing_cert_chain": {
        "cert_chain": [
            "string"
        ]
    },
    "private_key": "string"
}
signing_cert_chain
Required

Signing certificate chain that the vCenter token service will actively use to sign tokens. The chain must include a valid certificate chain with the leaf cert marked for digital signature key usage.

This property was added in vSphere API 7.0.3.0.

string
private_key
Required

The corresponding unencrypted PKCS#8 private key in base64-encoded PEM format.

This property was added in vSphere API 7.0.3.0.

Authorization
This operation uses the following authorization methods.
Responses
204

Success!

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"private_key:"string","signing_cert_chain":"{}"}' https://{api_host}/api/vcenter/certificate-management/vcenter/signing-certificate