All Products
Search
Document Center

Certificate Management Service:GetUserCertificateDetail

Last Updated:Mar 14, 2024

Queries the details of a certificate.

Operation description

You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-cert:GetUserCertificateDetailRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CertIdlongYes

The ID of the certificate.

6055048
CertFilterbooleanNo

If true, the Cert, Key, EncryptCert, EncryptPrivateKey, SignCert, SignPrivateKey will return null, default is false.

false

Response parameters

ParameterTypeDescriptionExample
object

The object.

Certstring

The content of the certificate.

----BEGIN CERTIFICATE----- MIIF*** -----END CERTIFICATE-----
Keystring

The private key.

-----BEGIN RSA PRIVATE KEY----- MII***-----END RSA PRIVATE KEY-----
EncryptCertstring

The content of the encryption certificate in PEM format.

-----BEGIN CERTIFICATE----- MIICDzCCA*** -----END CERTIFICATE-----
EncryptPrivateKeystring

The private key of the encryption certificate in the PEM format.

-----BEGIN EC PRIVATE KEY----- MHcCAQEEI**** -----END EC PRIVATE KEY-----
SignCertstring

The content of the signing certificate in the PEM format.

-----BEGIN CERTIFICATE----- MIICDzCCAbagAw**** -----END CERTIFICATE-----
SignPrivateKeystring

The private key of the signing certificate in the PEM format.

-----BEGIN EC PRIVATE KEY----- MHcCAQEEILR**** -----END EC PRIVATE KEY-----
Idlong

The ID of the certificate.

121345
Namestring

The name of the certificate.

cert_name
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

15C66C7B-671A-4297-9187-2C4477247A74
Commonstring

The parent domain name that is bound to the certificate.

*.com
Fingerprintstring

The fingerprint of the certificate.

1D7801BBE772D5DE55CBF1F88AEB41A42402DA07
Issuerstring

The certificate authority (CA) that issued the certificate.

Digicert
OrgNamestring

The name of the company or organization to which the certificate purchaser belongs.

Alibaba
Provincestring

The province of the company or organization to which the certificate purchaser belongs.

zhejiang
Citystring

The city of the company or organization to which the certificate purchaser belongs.

hangzhou
Countrystring

The country or region of the company or organization to which the certificate purchaser belongs.

CN
StartDatestring

The issuance date of the certificate.

2018-07-13
EndDatestring

The expiration date of the certificate.

2023-10-25
Sansstring

All domain names that are bound to the certificate.

*.com
Expiredboolean

Indicates whether the certificate has expired. Valid values:

  • true: yes
  • false: no
true
BuyInAliyunboolean

Indicates whether the certificate was purchased from Alibaba Cloud. Valid values:

  • true: yes
  • false: no
true
OrderIdlong

The ID of the certificate application order.

123456
ResourceGroupIdstring

The ID of the resource group to which the certificate belongs.

rg-aek****wia
Algorithmstring

The algorithm.

RSA

Examples

Sample success responses

JSONformat

{
  "Cert": "----BEGIN CERTIFICATE----- MIIF*** -----END CERTIFICATE-----",
  "Key": "-----BEGIN RSA PRIVATE KEY----- MII***-----END RSA PRIVATE KEY-----",
  "EncryptCert": "-----BEGIN CERTIFICATE-----\nMIICDzCCA***\n-----END CERTIFICATE-----",
  "EncryptPrivateKey": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEI****\n-----END EC PRIVATE KEY-----",
  "SignCert": "-----BEGIN CERTIFICATE-----\nMIICDzCCAbagAw****\n-----END CERTIFICATE-----\n",
  "SignPrivateKey": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEILR****\n-----END EC PRIVATE KEY-----\n",
  "Id": 121345,
  "Name": "cert_name",
  "RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
  "Common": "*.com",
  "Fingerprint": "1D7801BBE772D5DE55CBF1F88AEB41A42402DA07",
  "Issuer": "Digicert",
  "OrgName": "Alibaba",
  "Province": "zhejiang",
  "City": "hangzhou",
  "Country": "CN",
  "StartDate": "2018-07-13",
  "EndDate": "2023-10-25",
  "Sans": "*.com",
  "Expired": true,
  "BuyInAliyun": true,
  "OrderId": 123456,
  "ResourceGroupId": "rg-aek****wia",
  "Algorithm": "RSA"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-04-20The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: CertFilter
Output ParametersThe response structure of the API has changed.