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.
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 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.
The corresponding unencrypted PKCS#8 private key in base64-encoded PEM format.
This property was added in vSphere API 7.0.3.0.
Success!
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