Queries the details of a CA certificate.
Operation description
This operation queries the details of a root CA certificate or sub-CA certificate by using the unique identifier of the certificate. The details include the serial number, subject information, and certificate content of the CA certificate.
Before you call this operation, you must have called CreateRootCACertificate to create a root CA certificate and CreateSubCACertificate to create a sub-CA certificate.
QPS limit
The China site (aliyun.com) allows up to 10 queries per second (QPS) for a single user. If the number of calls per second exceeds the limit, throttling is triggered. Throttling may affect your business. Call this operation as appropriate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:DescribeCACertificate |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Identifier |
string |
No |
The unique identifier of the CA certificate that you want to query. Note
You can call DescribeCACertificateList to query the unique identifiers of all CA certificates. |
160ae6bb538d538c70c01f81dcf2**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
DescribeCertificateResponse |
||
| Certificate |
object |
The details of the CA certificate. |
|
| CertificateType |
string |
The type of the CA certificate. Valid values:
|
SUB_ROOT |
| X509Certificate |
string |
The content of the CA certificate. |
-----BEGIN CERTIFICATE----- …… -----END CERTIFICATE----- |
| Identifier |
string |
The unique identifier of the CA certificate. |
160ae6bb538d538c70c01f81dcf2**** |
| SerialNumber |
string |
The serial number of the CA certificate. |
70e3b2566d92805173767869727fb92e**** |
| SubjectDN |
string |
The subject attributes of the CA certificate, which include the following information:
|
C=CN,O=aliyun,OU=Security,L=Hangzhou,ST=Zhejiang,CN=Aliyun |
| CommonName |
string |
The common name or abbreviation of the organization associated with the CA certificate. |
Aliyun |
| OrganizationUnit |
string |
The name of the department in the organization associated with the CA certificate. |
Security |
| Organization |
string |
The name of the organization associated with the CA certificate. |
aliyun |
| Locality |
string |
The name of the city where the organization associated with the CA certificate is located. |
Hangzhou |
| State |
string |
The name of the province or state where the organization associated with the CA certificate is located. |
Zhejiang |
| CountryCode |
string |
The country code of the organization associated with the CA certificate. For more information about country codes, see the International codes section in Manage company information. |
CN |
| Sans |
string |
This parameter is deprecated. |
1 |
| Status |
string |
The status of the CA certificate. Valid values:
|
ISSUE |
| Algorithm |
string |
The encryption algorithm type of the CA certificate. Valid values:
|
RSA |
| KeySize |
integer |
The key length of the CA certificate. |
2048 |
| SignAlgorithm |
string |
The signature algorithm of the CA certificate. |
SHA256WITHRSA |
| BeforeDate |
integer |
The issuance date of the CA certificate. The value is a UNIX timestamp. Unit: milliseconds. |
1634283958000 |
| AfterDate |
integer |
The expiration date of the CA certificate. The value is a UNIX timestamp. Unit: milliseconds. |
1665819958000 |
| ParentIdentifier |
string |
The unique identifier of the root CA certificate that issued this CA certificate. Note
This parameter is returned only when CertificateType is SUB_ROOT (sub-CA certificate). |
1a83bcbb89e562885e40aa0108f5**** |
| Sha2 |
string |
The SHA-256 fingerprint of the CA certificate. |
14dcc8afc7578e1fcec36d658f7e20de18f6957bbac42b373a66bc9de4e9**** |
| Md5 |
string |
The MD5 fingerprint of the CA certificate. |
160ae6bb538d538c70c01f81dcf2**** |
| CrlStatus |
string |
The certificate revocation list (CRL) status (enabled or disabled). |
ACTIVE |
| CrlUrl |
string |
The CRL URL. |
https://crl-cn-publish.oss-cn-hangzhou.aliyuncs.com/pca/crl/1925647866611395/1ed40789-483f-6023-b6b8-29ddd3bb0a9a.crl |
| CertTotalCount |
integer |
The total number of purchased certificate quotas. |
40 |
| CertRemainingCount |
integer |
The number of remaining certificate quotas that can be allocated. |
30 |
| CertIssuedCount |
integer |
The number of certificates issued by the private CA instance. |
10 |
| CaCertChain |
string |
The complete certificate chain. |
-----BEGIN CERTIFICATE----- -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- |
| CrlDay |
integer |
The validity period of the CRL, ranging from 1 to 365 days. |
90 |
| IssuerType |
string |
The issuing authority of the CA. Valid values:
|
local |
| Years |
integer |
The validity period of the CA certificate. Unit: years. |
1 |
| FullAlgorithm |
string |
The algorithm with key length. |
RSA_2048 |
| ResourceGroupId |
string |
The ID of the resource group to which the certificate belongs. |
rg-aek2pxd7ekpoo2y |
| ClusterId |
string |
The identifier of the hardware security module (HSM) cluster. (The CA is enabled through an HSM.) |
XXX-id |
| KeyIndex |
integer |
The key index position in the HSM. (The CA is enabled through an HSM.) |
8 |
| Tags |
array<object> |
The list of tags. |
|
|
object |
The tag value. |
||
| TagKey |
string |
The key of the tag. |
使用状态 |
| TagValue |
string |
The value of the tag. |
BMS |
| CertMaxTime |
integer |
The maximum validity period for certificates issued by the CA, as specified by the certMaxTime of the CA. |
30 |
| RequestId |
string |
The request ID. |
15C66C7B-671A-4297-9187-2C4477247A74 |
| Years |
integer |
The validity period of the CA certificate. Unit: years. |
10 |
Examples
Success response
JSON format
{
"Certificate": {
"CertificateType": "SUB_ROOT",
"X509Certificate": "-----BEGIN CERTIFICATE----- …… -----END CERTIFICATE-----",
"Identifier": "160ae6bb538d538c70c01f81dcf2****",
"SerialNumber": "70e3b2566d92805173767869727fb92e****",
"SubjectDN": "C=CN,O=aliyun,OU=Security,L=Hangzhou,ST=Zhejiang,CN=Aliyun",
"CommonName": "Aliyun",
"OrganizationUnit": "Security",
"Organization": "aliyun",
"Locality": "Hangzhou",
"State": "Zhejiang",
"CountryCode": "CN",
"Sans": "1",
"Status": "ISSUE",
"Algorithm": "RSA",
"KeySize": 2048,
"SignAlgorithm": "SHA256WITHRSA",
"BeforeDate": 1634283958000,
"AfterDate": 1665819958000,
"ParentIdentifier": "1a83bcbb89e562885e40aa0108f5****",
"Sha2": "14dcc8afc7578e1fcec36d658f7e20de18f6957bbac42b373a66bc9de4e9****",
"Md5": "160ae6bb538d538c70c01f81dcf2****",
"CrlStatus": "ACTIVE",
"CrlUrl": "https://crl-cn-publish.oss-cn-hangzhou.aliyuncs.com/pca/crl/1925647866611395/1ed40789-483f-6023-b6b8-29ddd3bb0a9a.crl",
"CertTotalCount": 40,
"CertRemainingCount": 30,
"CertIssuedCount": 10,
"CaCertChain": "-----BEGIN CERTIFICATE-----\n-----END CERTIFICATE-----\n\n-----BEGIN CERTIFICATE-----\n-----END CERTIFICATE-----\n\n-----BEGIN CERTIFICATE-----\n-----END CERTIFICATE-----",
"CrlDay": 90,
"IssuerType": "local",
"Years": 1,
"FullAlgorithm": "RSA_2048",
"ResourceGroupId": "rg-aek2pxd7ekpoo2y",
"ClusterId": "XXX-id",
"KeyIndex": 8,
"Tags": [
{
"TagKey": "使用状态",
"TagValue": "BMS"
}
],
"CertMaxTime": 0
},
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
"Years": 10
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.