
# 查看域名证书
#### 功能介绍
查看域名下绑定的证书详情。
#### URI
HTTP/HTTPS请求方法以及URI如下表所示
表1HTTP/HTTPS请求方法以及URI 
| 请求方法 | URI                                                                    |
|:---|:---|
| GET  | /v1.0/apigw/api-groups/{group_id}/domains/{domain_id}/certificate/{id} |
   
URI中的参数说明如下表所示。
表2参数说明 
| 名称        | 是否必选 | 类型     | 说明    |
|:---|:---|:---|:---|
| group_id  | 是    | String | 分组的编号 |
| domain_id | 是    | String | 域名的编号 |
| id        | 是    | String | 证书的编号 |
   
#### 请求消息
无
#### 响应消息
表3参数说明 
| 名称                  | 类型        | 说明        |
|:---|:---|:---|
| common_name         | String    | 证书域名      |
| san                 | 字典数据类型    | SAN域名     |
| version             | String    | 证书版本      |
| organization        | 字典数据类型    | 公司、组织     |
| organizational_unit | 字典数据类型    | 部门        |
| locality            | 字典数据类型    | 城市        |
| state               | 字典数据类型    | 省份        |
| country             | 字典数据类型    | 国家        |
| not_before          | Timestamp | 证书有效期起始时间 |
| not_after           | Timestamp | 证书有效期截止时间 |
| serial_number       | String    | 序列号       |
| issuer              | 字典数据类型    | 颁发者       |
| signature_algorithm | String    | 签名算法      |
   
响应消息样例：
```
{
    "san": [
        "xxx.xxx.xxx"
    ],
    "country": [
        "CN"
    ],
    "not_before": "2019-04-29T11:49:18Z",
    "locality": [
        "XXX"
    ],
    "serial_number": "00000000000000000000000000",
    "version": 3,
    "issuer": [
        "XXX"
    ],
    "not_after": "2029-04-29T11:49:18Z",
    "organization": [
        "XXX"
    ],
    "signature_algorithm": "SHA256-RSA",
    "state": [
        "XXX"
    ],
    "common_name": "xxx.xxx.xxx",
    "organizational_unit": [
        "XXX"
    ]
}
```
#### 状态码
表4返回消息说明 
| 状态码 | 说明                    |
|:---|:---|
| 200 | OK                    |
| 400 | Bad Request           |
| 401 | Unauthorized          |
| 403 | Forbidden             |
| 404 | Not Found             |
| 500 | Server Internal Error |
   
