All Products
Search
Document Center

Key Management Service:UpdateCertificateStatus

Last Updated:Jul 29, 2025

Updates the status of a certificate.

Operation description

In this example, the status of the certificate whose ID is 9a28de48-8d8b-484d-a766-dec4**** is updated to INACTIVE.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
CertificateIdstringYes

The ID of the certificate. The ID must be globally unique in Certificates Manager.

9a28de48-8d8b-484d-a766-dec4****
StatusstringYes

The status of the certificate. Valid values:

  • INACTIVE: The certificate is disabled.

  • ACTIVE: The certificate is enabled.

  • REVOKED: The certificate is revoked.

Note If the certificate is in the REVOKED state, you can use the certificate only to verify a signature, but not to generate a signature.
INACTIVE

For more information about common request parameters, see Common parameters.

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

e3f57fe0-9ded-40b0-9caf-a3815f2148c1

Examples

Sample success responses

JSONformat

{
  "RequestId": "e3f57fe0-9ded-40b0-9caf-a3815f2148c1"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is not valid.An invalid value is specified for the parameter.
404Certificate.NotFoundThe specified certificate is not found.The specified certificate does not exist.
404InvalidAccessKeyId.NotFoundThe Access Key ID provided does not exist in our records.-

For a list of error codes, visit the Service error codes.