Verifies a data signature by using a private certificate in a certificate application repository.
Operation description
This API verifies the signatures of PCA certificates and SSL certificates in the certificate repository.
QPS limits
The queries per second (QPS) limit for this API is 1,000 for a single user. For your specific QPS limit, refer to the certificate repository. If you exceed this limit, API calls are throttled, which may affect your business. Plan your API calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:Verify |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Message |
string |
Yes |
The data to verify. The data must be Base64-encoded. For example, if the hexadecimal content of the data to sign is `[0x31, 0x32, 0x33, 0x34]`, the Base64-encoded value is `MTIzNA==`. If you set `MessageType` to `RAW`, the data size must be less than 4 KB. If the data to sign is larger than 4 KB, set `MessageType` to `DIGEST`. Then, set `Message` to the message digest, or hash, that you calculate locally. The hashing algorithm for the digest must be compatible with the signature algorithm:
|
MTIzNA== |
| CertIdentifier |
string |
No |
The unique identifier of the certificate. To get this parameter, call the ListCert operation.
|
1ef1da5f-38ed-69b3-****-037781890265 |
| SigningAlgorithm |
string |
Yes |
The signature algorithm. Valid values:
|
SHA256withRSA |
| MessageType |
string |
Yes |
The message type. Valid values:
|
RAW |
| SignatureValue |
string |
Yes |
The signature value. The value must be Base64-encoded. |
eyaC0w3ROK5b3QcHmUtAhMY/sQjKu2t3uBfnf6J/gn7JfZtyxwcCUjzXbw5jmqJQRbj1te670Bshg9kUdanKhtHFhJjU5jX+ZMMBr6pH0gqQDJxR0K0yHXRc0Q5OQoUZ6BfpbI4Wt4jJvJSdCstz1vSg12CfEHS8Kd5qfhItK7Y= |
| CustomIdentifier |
string |
No |
The custom identifier. This key must be unique. |
****6bb538d538c70c01f81jh2**** |
| WarehouseId |
string |
No |
The ID of the repository. To get this parameter, call the ListCertWarehouse operation. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
1ed33293-2e48-6b14-861e-538e28e408eb |
| SignatureValid |
boolean |
The result of the signature verification. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "1ed33293-2e48-6b14-861e-538e28e408eb",
"SignatureValid": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.