# 证书列表

`GET /cert/list`

列出证书中心里的全部证书。

Base URL: https://api.bitiful.com

Authentication: API key in header `Authorization`

## Example request

```bash
curl -X GET https://api.bitiful.com/cert/list
```

## Responses

- **200**: 证书列表。
- **401**: API Token 缺失或无效。
- **500**: 服务端错误，请稍后重试。

### Example response (200)

```json
{
  "list": [
    {
      "cert_id": "64f0c1d2e3",
      "cert_name": "cdn-example-auto",
      "status": "deployed",
      "bind_domain": [
        "cdn.example.com"
      ],
      "expire_time": 1772323200,
      "update_time": 1764547200,
      "cert_type": 1,
      "use_in": [
        {
          "domain": "cdn.example.com",
          "resource": "cdn",
          "bucket": ""
        }
      ],
      "dns_domains": [
        "cdn.example.com"
      ],
      "algorithm": 1,
      "auto_cert_configs": [
        {
          "status": 1,
          "domain": "cdn.example.com",
          "host": "_acme-challenge.cdn",
          "record_value": "1000000000-0123456789abcdef.btf.cnamecenter.com",
          "record_type": "CNAME"
        }
      ],
      "provider": "le",
      "algorithm_name": "rsa",
      "apply_domains": [
        "cdn.example.com"
      ]
    }
  ],
  "total": 1
}
```
