Retrieves the details of multiple client or server certificates by serial number.
This API has been deprecated. We recommend migrating to cas(2020-06-30) - DescribeClientCertificate for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Operation description
Usage
Retrieves the details of multiple client or server certificates by serial number. The response includes each certificate's serial number, subject information, content, and status.
Before calling this operation, ensure you have created a client certificate or a server certificate.
To create a client certificate, see:
To create a server certificate, see:
QPS limit
The QPS limit for this operation is 10 calls per second per account. Exceeding this limit triggers throttling, which can impact your business. Plan your calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:DescribeClientCertificateForSerialNumber |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SerialNumber |
string |
Yes |
The serial numbers of the client or server certificates. Separate multiple serial numbers with a comma. Note
Call ListClientCertificate to query the serial numbers of all client and server certificates. |
084bde9cd233f0ddae33adc438cfbbbd**** |
When calling this API, you must include the Alibaba Cloud common request parameters in addition to the API-specific parameters described in this topic. For more information, see Common parameters.
For the request format, see the example in the Examples section.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
ListCertificateResponse |
||
| CertificateList |
array<object> |
Details of the client or server certificates. |
|
|
object |
The certificate information. |
||
| X509Certificate |
string |
The certificate content. |
-----BEGIN CERTIFICATE----- ...... -----END CERTIFICATE----- |
| Identifier |
string |
The unique identifier of the certificate. |
d3b95700998e47afc4d95f886579**** |
| SerialNumber |
string |
The serial number of the certificate. |
084bde9cd233f0ddae33adc438cfbbbd**** |
| SubjectDN |
string |
The distinguished name (DN) of the certificate. The DN contains information about the certificate subject, including:
|
C=CN,O=阿里云计算有限公司,OU=Security,L=Hangzhou,ST=Zhejiang,CN=Aliyun |
| CommonName |
string |
The common name of the certificate. |
aliyun.com |
| OrganizationUnit |
string |
The organizational unit of the issuer. |
Security |
| Organization |
string |
The organization of the issuer. |
阿里云计算有限公司 |
| Locality |
string |
The city of the issuer. |
Hangzhou |
| State |
string |
The state or province of the issuer. |
Zhejiang |
| CountryCode |
string |
The two-letter country code of the issuer. For more information about country codes, see the Country codes section in Manage company profiles. |
CN |
| Sans |
string |
The subject alternative name (SAN) extension, which specifies identifiers such as email addresses, domain names, URIs, and IP addresses. A JSON string that represents an array of SAN objects. Each object contains the following parameters:
|
[ {"Type": 7, "Value": "192.0.XX.XX"}, {"Type": 2, "Value": "www.aliyundoc.com"}, ] |
| Status |
string |
The status of the certificate. Valid values:
|
ISSUE |
| BeforeDate |
string |
The issuance time of the certificate. |
2021-10-28T16:15Z |
| AfterDate |
string |
The expiration time of the certificate. |
2022-08-23T16:15Z |
| Algorithm |
string |
The encryption algorithm of the certificate. Valid values:
|
RSA |
| KeySize |
integer |
The key length of the certificate. |
4096 |
| SignAlgorithm |
string |
The signature algorithm of the certificate. |
SHA256WITHRSA |
| CertificateType |
string |
The type of the certificate. |
SUB_ROOT |
| ParentIdentifier |
string |
The identifier of the issuer. This parameter is returned only if the certificate is issued by Alibaba Cloud. |
1a83bcbb89e562885e40aa0108f5**** |
| Sha2 |
string |
The SHA-256 fingerprint of the certificate. |
14dcc8afc7578e1fcec36d658f7e20de18f6957bbac42b373a66bc9de4e9**** |
| Md5 |
string |
The MD5 fingerprint of the certificate. |
d3b95700998e47afc4d95f886579**** |
| Years |
integer |
This parameter is deprecated. |
1 |
| RequestId |
string |
The ID of the request. |
15C66C7B-671A-4297-9187-2C4477247A74 |
Examples
Success response
JSON format
{
"CertificateList": [
{
"X509Certificate": "-----BEGIN CERTIFICATE----- ...... -----END CERTIFICATE-----",
"Identifier": "d3b95700998e47afc4d95f886579****",
"SerialNumber": "084bde9cd233f0ddae33adc438cfbbbd****",
"SubjectDN": "C=CN,O=阿里云计算有限公司,OU=Security,L=Hangzhou,ST=Zhejiang,CN=Aliyun",
"CommonName": "aliyun.com",
"OrganizationUnit": "Security",
"Organization": "阿里云计算有限公司",
"Locality": "Hangzhou",
"State": "Zhejiang",
"CountryCode": "CN",
"Sans": "[ {\"Type\": 7, \"Value\": \"192.0.XX.XX\"}, {\"Type\": 2, \"Value\": \"www.aliyundoc.com\"}, ]",
"Status": "ISSUE",
"BeforeDate": "2021-10-28T16:15Z",
"AfterDate": "2022-08-23T16:15Z",
"Algorithm": "RSA",
"KeySize": 4096,
"SignAlgorithm": "SHA256WITHRSA",
"CertificateType": "SUB_ROOT",
"ParentIdentifier": "1a83bcbb89e562885e40aa0108f5****",
"Sha2": "14dcc8afc7578e1fcec36d658f7e20de18f6957bbac42b373a66bc9de4e9****",
"Md5": "d3b95700998e47afc4d95f886579****",
"Years": 1
}
],
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.