All Products
Search
Document Center

Certificate Management Service:Decrypt

Last Updated:Jul 31, 2024

Decrypts a certificate in a certificate repository.

Operation description

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
CertIdentifierstringYes

The unique identifier of the certificate. You can call the ListCert operation to query the identifier.

  • If the certificate is an SSL certificate, the value of this parameter must be in the {Certificate ID}-cn-hangzhou format.
  • If the certificate is a private certificate, the value of this parameter must be the value of the Identifier field for the private certificate.
12345678-1234-1234-1234-12345678****
AlgorithmstringYes

The encryption algorithm. Valid values:

  • RSAES_OAEP_SHA_1
  • RSAES_OAEP_SHA_256
  • SM2PKE
RSAESOAEPSHA_1
CiphertextBlobstringYes

The data that you want to decrypt. The value is encoded in Base64.

ZOyIygCyaOW6Gj****MlNKiuyjfzw=
MessageTypestringNo

The value type of the Message parameter. Valid values:

  • RAW: The returned result is raw data encoded in UTF-8.
  • Base64: The returned result is Base64-encoded data. This is the default value.
Base64

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Plaintextstring

The data after decryption.

VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4
RequestIdstring

The ID of the request.

5979d897-d69f-4fc9-87dd-f3bb73c40b80
CertIdentifierstring

The unique identifier of the certificate.

12345678-1234-1234-1234-12345678****

Examples

Sample success responses

JSONformat

{
  "Plaintext": "VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4",
  "RequestId": "5979d897-d69f-4fc9-87dd-f3bb73c40b80",
  "CertIdentifier": "12345678-1234-1234-1234-12345678****"
}

Error codes

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