Queries the details of a certificate without returning the certificate content or private key content.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:GetCertificateDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CertificateId |
integer |
Yes |
The certificate ID. |
18594156 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| InstanceId |
string |
The instance ID. |
cas_dv-cn-123 |
| CommonName |
string |
The common domain name. |
www.example.com |
| RequestId |
string |
The request ID. Alibaba Cloud generates a unique identifier for each API request. You can use this ID to troubleshoot issues. |
5979d897-d69f-4fc9-87dd-f3bb73c40b80 |
| Algorithm |
string |
The certificate algorithm. Valid values:
|
RSA |
| Domain |
string |
All domain names contained in the certificate. Multiple domain names are separated by commas. |
aliyundoc.com,example.aliyundoc.com |
| CertificateId |
integer |
The certificate ID. |
22559621 |
| CertificateName |
string |
The certificate name. |
123 |
| CertIdentifier |
string |
The global certificate ID in the format of certificate ID + "-" + site region ID. This is commonly used across Alibaba Cloud services. --For the China site, the format is certificate ID + "-cn-hangzhou". For the China site, the format is certificate ID + "-ap-southeast-1". For example, if the certificate ID is 123, the CertIdentifier on the China site is "123-cn-hangzhou", and the CertIdentifier on the China site is "123-ap-southeast-1". |
21912069-cn-hangzhou |
| CertificateSource |
string |
The certificate source. Valid values:
|
BUY |
| CertificateStatus |
string |
The certificate status. Valid values:
|
issued |
| Csr |
string |
The certificate signing request (CSR) used to issue the certificate. |
-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST----- |
| NotBefore |
integer |
The start time of the certificate validity period. |
17321613180000 |
| NotAfter |
integer |
The end time of the certificate validity period. |
17326613180000 |
| CompanyId |
integer |
The company information ID associated with the certificate application. This field is empty for DV certificates. |
44211 |
| ContactId |
integer |
The contact ID. |
304066 |
| KeySize |
integer |
The key algorithm length.
|
2048 |
| SubjectAlternativeNames |
array |
The list of Subject Alternative Names (SANs) of the certificate, returned in array format. This corresponds to the |
|
|
string |
The subject alternative name of the certificate. |
aliyundoc.com |
|
| Serial |
string |
The certificate serial number. |
123 |
| ExistPrivateKey |
boolean |
Indicates whether a private key exists on the backend for the current certificate. Valid values:
|
true |
| UsingProductList |
array |
The list of cloud services to which the current certificate is deployed. |
|
|
string |
The cloud service. |
CDN |
|
| FingerPrint |
string |
The public key fingerprint. |
123 |
| CertificateChainList |
array<object> |
The certificate chain information list. |
|
|
object |
The certificate chain information. |
||
| Issuer |
string |
The issuer name in the certificate chain. |
Digicert |
| Subject |
string |
The common name in the certificate chain. |
Digicert |
| RemainDay |
integer |
The remaining days of the certificate chain validity period. |
10 |
| NotBefore |
integer |
The start time of the certificate validity period. |
17321613180000 |
| NotAfter |
integer |
The end time of the certificate validity period. |
17326613180000 |
| Issuer |
string |
The entity that issued the certificate. |
Digicert |
| Tags |
array<object> |
The tag list. |
|
|
object |
The tag list. |
||
| TagKey |
string |
The tag key of the instance. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with |
test |
| TagValue |
string |
The tag value. |
test |
Examples
Success response
JSON format
{
"InstanceId": "cas_dv-cn-123",
"CommonName": "www.example.com",
"RequestId": "5979d897-d69f-4fc9-87dd-f3bb73c40b80",
"Algorithm": "RSA",
"Domain": "aliyundoc.com,example.aliyundoc.com",
"CertificateId": 22559621,
"CertificateName": "123",
"CertIdentifier": "21912069-cn-hangzhou",
"CertificateSource": "BUY",
"CertificateStatus": "issued",
"Csr": "-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST-----",
"NotBefore": 17321613180000,
"NotAfter": 17326613180000,
"CompanyId": 44211,
"ContactId": 304066,
"KeySize": 2048,
"SubjectAlternativeNames": [
"aliyundoc.com"
],
"Serial": "123",
"ExistPrivateKey": true,
"UsingProductList": [
"CDN"
],
"FingerPrint": "123",
"CertificateChainList": [
{
"Issuer": "Digicert",
"Subject": "Digicert",
"RemainDay": 10,
"NotBefore": 17321613180000,
"NotAfter": 17326613180000
}
],
"Issuer": "Digicert",
"Tags": [
{
"TagKey": "test",
"TagValue": "test"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.