获取指定的客户端CA证书。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| SiteId | long | 是 | 站点 ID。可通过 ListSites 接口获取。 | 1234567890123 |
| Id | string | 是 | 证书 ID。可通过 ListClientCaCertificates 接口获取。 | babab9db65ee5efcca9f3d41d4b5**** |
返回参数
示例
正常返回示例
JSON格式
{
"SiteId": 1234567890123,
"SiteName": "example.com",
"Status": "OK",
"Certificate": "-----BEGIN CERTIFICATE-----",
"Result": {
"Id": "babab9db65ee5efcca9f3d41d4b5****",
"Name": "yourCertName",
"Status": "OK",
"Type": "upload",
"CommonName": "www.example.com ",
"NotBefore": "2023-03-31 02:08:00",
"NotAfter": "2024-03-31 02:08:00",
"Issuer": "GlobalSign nv-sa",
"SAN": "www.example.com,*.example.com",
"SignatureAlgorithm": "SHA256-RSA",
"PubkeyAlgorithm": "RSA",
"CreateTime": "2024-03-05 18:24:04",
"UpdateTime": "2024-03-05 18:24:04",
"SerialNumber": "",
"FingerprintSha256": ""
},
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 400 | InvalidParameter.SiteId | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. | SiteId参数无效,无法通过指定的SiteId获取对应的站点名称,请确认SiteId后重试。 |
| 400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | 缺少必填参数SiteId,请指定SiteId参数后重试。 |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | InvalidParameter | The specified parameter is invalid. | 输入参数规范校验失败。 |
| 400 | Id.MissingParameter | The parameter Id is required. | 缺少必填参数Id。 |
| 403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | 您输入的鉴权时间参数无效,请检查参数值后重试。 |
| 403 | Unauthorized.InvalidToken | Token authentication failed. | 您输入的token无效,请检查并输入正确的token后进行重试。 |
| 404 | Certificate.NotFound | The specified certificate does not exist. | 指定的证书不存在。 |
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 |
|---|---|---|
| 2025-03-12 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
