Query the details of a single certificate.

You can call this operation to query the details of a single certificate, including the certificate name, certificate content, certificate private key, certificate authority, certificate validity period, and certificate fingerprint.


Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeUserCertificateDetail

The operation that you want to perform. Set this value to DescribeUserCertificateDetail.

CertId Long  Yes 12345

The ID of the certificate. You can call the CreateUserCertificate operation to obtain CertId in the response.

Lang String No zh

The language type of the request and response.

SourceIp String No

The source IP address of the request.

Response parameters

Parameter Type Example Description
BuyInAliyun Boolean true

Indicates whether the certificate was purchased from Alibaba Cloud.

Cert String -----BEGIN CERTIFICATE----- MIIF...... -----END CERTIFICATE-----

The certificate content, in PEM format.

City String hangzhou

The city where the organization that purchases the certificate is located.

Common String *.com

The common name (CN) attribute of the certificate.

Country String Chinese

The country where the organization that purchases the certificate is located.

EndDate String 2020-07-13

The expiration date of the certificate.

Expired Boolean  false

Indicates whether the certificate has expired.

Fingerprint String 6DEB816DE48D5E7DE

The certificate fingerprint.

Id Long 1

The ID of the certificate.

Issuer String DigiCert

The certificate authority.

Key String -----BEGIN RSA PRIVATE KEY----- MII.... -----END RSA PRIVATE KEY-----

The private key of the certificate, in PEM format.

Name String cert-1

The name of the certificate.

OrgName String Alibaba

The name of the organization that purchases the certificate.

Province String zhejiang

The province where the organization that purchases the certificate is located.

RequestId String 123

The ID of the request.

Sans String *.com

All domain names bound to the certificate.

StartDate String 2018-07-13

The issuance date of the certificate.


Sample request

http(s)://[Endpoint]/? Action=DescribeUserCertificateDetail
&<Common request parameters>

Sample success response

XML format


JSON format


Error codes

The operation returns only common errors. For more information about errors common to all operations, see Error codes.