查询证书详情

最近更新时间:2019-08-09 19:18:42

1. 接口描述

接口请求域名: gaap.tencentcloudapi.com 。

本接口(DescribeCertificateDetail)用于查询证书详情,包括证书ID,证书名字,证书类型,证书内容以及密钥等信息。

默认接口请求频率限制:20次/秒。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeCertificateDetail
Version String 公共参数,本接口取值:2018-05-29
Region String 公共参数,本接口不需要传递此参数。
CertificateId String 证书ID。

3. 输出参数

参数名称 类型 描述
CertificateDetail CertificateDetail 证书详情。
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 查询证书详情。

输入示例

https://gaap.tencentcloudapi.com/?Action=DescribeCertificateDetail
&CertificateId=cert-d5y6ei3b
&<公共请求参数>

输出示例

{
  "Response": {
    "CertificateDetail": {
      "CertificateId": "cert-d5y6ei3b",
      "SubjectCN": "lagameft01.xyz",
      "CertificateAlias": "ca",
      "CertificateContent": "-----BEGIN CERTIFICATE-----\nMIIFmDCCBICgAwIBAgIQC6TGAPV+4MO7NIhlkkKFljANBgkqhkiG9w0BAQsFADBy\nMQswCQYDVQQGEwJDTjElMCMGA1UEChMcVHJ1c3RBc2lhIFRlY2hub2xvZ2llcywg\nSW5jLjEdMBsGA1UECxMURG9tYWluIFZhbGlkYXRlZCBTU0wxHTAbBgNVBAMTFFRy\ndXN0QXNpYSBUTFMgUlNBIENBMB4XDTE5MDQwMjAwMDAwMFoXDTIwMDQwMTEyMDAw\nMFowGTEXMBUGA1UEAxMObGFnYW1lZnQwMS54eXowggEiMA0GCSqGSIb3DQEBAQUA\nA4IBDwAwggEKAoIBAQCuSgglfAksbFSrvWp6cEFr8ulTWEND2KvXf6cCs3kBBCzE\nMLhCw4792LMFY0+FE7a0j7i5nJ9+QvhX7GRiu1P9flyge0eUCOBOAtVCn0dvhbLy\n7efWsmH3kp/owWXnZXeb/k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VyJY\nRmE=\n-----END CERTIFICATE-----",
      "CertificateKey": null,
      "BeginTime": 1554134400,
      "CertificateType": 3,
      "EndTime": 1585713600,
      "CreateTime": 1564560608,
      "IssuerCN": "TrustAsia TLS RSA CA"
    },
    "RequestId": "7a4d63f8-a663-469c-be71-f1c00001c74b"
  }
}

5. 开发者资源

API Explorer

该工具提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力,能显著降低使用云 API 的难度,推荐使用。

SDK

云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

命令行工具

6. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码

错误码 描述
InternalError 内部错误
InvalidParameter 参数错误
InvalidParameterValue 参数取值错误
MissingParameter 缺少参数错误
ResourceNotFound 资源不存在
UnauthorizedOperation 未授权操作
UnknownParameter 未知参数错误
UnsupportedOperation 不支持该操作。