Updates the status of a certificate.

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


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateCertificateStatus

The operation that you want to perform. Set the value to UpdateCertificateStatus.

CertificateId String Yes 9a28de48-8d8b-484d-a766-dec4****

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

Status String Yes INACTIVE

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 REOVKED state, you can use the certificate only to verify a signature, but not to generate a signature.

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

Response parameters

Parameter Type Example Description
RequestId String e3f57fe0-9ded-40b0-9caf-a3815f2148c1

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

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

Error codes

HttpCode Error code Error message Description
404 Certificate.NotFound The specified certificate is not found. The error message returned because the specified certificate does not exist.

For a list of error codes, visit the API Error Center.