esx attestation certificate: set
Set the certificate.
Sets the certificate that is used to sign attestation reports. The existing certificate will be replaced by the one specified.
This is method is used after generating a CSR, and the specified certificate must match a pending CSR.
Request:
HTTP request
PUT https://{server}/api/esx/attestation/certificate
{
"certificate" : "string"
}
"certificate" : "string"
}
Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
- | set_spec | The new certificate. |
-.certificate | string | The attestation report signing certificate in PEM format. This certificate must be the result of processing the CSR that is returned by create, or get. |
Response:
HTTP Status Code: 204
Headers:
NoneType:
NoneErrors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | if there is a generic error. |
400 | invalid_argument | if the certificate is invalid. |
401 | unauthenticated | if the caller is not authenticated. |
403 | unauthorized | if the caller is not authorized. |