GetCertificateDetail - 获取证书详情

更新时间:
复制为 MD 格式

查询证书详情

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

CertificateId

integer

证书 ID。

18594156

返回参数

名称

类型

描述

示例值

object

InstanceId

string

实例的 ID。

cas_dv-cn-123

CommonName

string

通用域名。

www.example.com

RequestId

string

本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。

5979d897-d69f-4fc9-87dd-f3bb73c40b80

Algorithm

string

证书算法。

  • RSA:RSA 算法。

  • ECC:ECC 算法。

  • SM2:国密算法。

RSA

Domain

string

证书包含的所有域名,多个域名逗号分隔。

aliyundoc.com,example.aliyundoc.com

CertificateId

integer

证书 ID。

22559621

CertificateName

string

证书名称。

123

CertIdentifier

string

全局证书 ID,格式为证书 Id + "-" + 站点 regionId,常用在阿里云各个云产品中。 --国内站为证书 Id + "-cn-hangzhou" 国际站为证书 Id + "-ap-southeast-1" 例如证书 Id = 123,则国内站 CertIdentifier = “123-cn-hangzhou”,国际站 CertIdentifier = "123-ap-southeast-1"。

21912069-cn-hangzhou

CertificateSource

string

证书来源。

  • BUY 正式证书。

  • TEST 测试证书。

  • UPLOAD 上传证书。

BUY

CertificateStatus

string

证书的状态

  • issued:已签发

  • revoked:已吊销

  • willExpire:即将过期

  • expired:已过期

issued

NotBefore

integer

证书有效期的开始时间。

17321613180000

NotAfter

integer

证书有效期的截止时间。

17326613180000

KeySize

integer

密钥算法长度。

  • RSA 算法长度一般为 2048、3072、4096 等。

  • ECC 和 SM2 算法长度一般为 256。

2048

SubjectAlternativeNames

array

数组格式,返回证书的备用域名列表,对应证书的Subject Alternative Name字段。

string

证书的备用域名。

aliyundoc.com

Serial

string

证书序列号。

123

ExistPrivateKey

boolean

当前证书,后端是否存在私钥。取值:

  • true

  • false

true

UsingProductList

array

当前证书正在部署的云产品列表。

string

云产品。

CDN

FingerPrint

string

公钥指纹。

123

CertificateChainList

array<object>

证书链信息列表。

object

证书链信息。

Issuer

string

证书链的颁发名称。

Digicert

Subject

string

证书链的通用名称。

Digicert

RemainDay

integer

证书链有效期剩余时间。

10

NotBefore

integer

证书有效期的开始时间。

17321613180000

NotAfter

integer

证书有效期的截止时间。

17326613180000

Issuer

string

证书颁发机构。

Digicert

Tags

array<object>

标签列表。

object

标签列表。

TagKey

string

实例的标签键。N 的取值范围:1~20。一旦输入该值,则不允许为空字符串。

最多支持 64 个字符,不能以aliyunacs:开头,不能包含http://或者https://

test

TagValue

string

标签值。

test

示例

正常返回示例

JSON格式

{
  "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",
  "NotBefore": 17321613180000,
  "NotAfter": 17326613180000,
  "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"
    }
  ]
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情