获取证书列表
GET /certs
获取域名列表
请求
请求方式
GET
请求头
请求头
请求内容
说明
api-key
api_key
api_key
api-secret
api_secret
api_secret
参数类型
Query String
请求参数说明
字段名
字段类型
是否必填
字段说明
cert_id
int
证书ID
page
int
页数
limit
int
每页显示数
domain
str
域名
uid
str
uid
name
str
名称
des
str
备注
type
str
类型
dnsapi
str
DNS API
expire
str
过期时间
enable
str
启用
sync_state
str
状态
issue_state
str
失败原因
valid
str
valid
调用示例
curl "/certs?page=1&limit=10" -H "api-key:xxxxxxx" -H "api-secret:xxxxxxx"
响应
响应示例
{
  "code": 0,
  "count": 1,
  "data": [
    {
      "auto_renew": 0,
      "create_at2": "2022-03-01 19:50:19",
      "domain": "xp.funnullv11.com",
      "enable": 1,
      "expire_time2": null,
      "id": 32,
      "issue_state": "done",
      "name": "xp.funnullv11.com免费证书",
      "retry_at2": "2022-04-06 19:55:26",
      "start_time": null,
      "sync_state": "done",
      "task_enable": 0,
      "task_ret": "[Wed Apr  6 19:55:30 CST 2022] Using CA: https://acme-v02.api.letsencrypt.org/directory\n[Wed Apr  6 19:55:31 CST 2022] Create account key ok.\n[Wed Apr  6 19:55:32 CST 2022] Registering account: https://acme-v02.api.letsencrypt.org/directory\n[Wed Apr  6 19:55:35 CST 2022] Registered\n[Wed Apr  6 19:55:36 CST 2022] ACCOUNT_THUMBPRINT='GypSYsghKNQQnwLIpgQaDVnD_yU6fb_r536P9N0wVP0'\n[Wed Apr  6 19:55:36 CST 2022] Creating domain key\n[Wed Apr  6 19:55:37 CST 2022] The domain key is here: /root/.acme.sh/49//xp.funnullv11.com/xp.funnullv11.com.key\n[Wed Apr  6 19:55:37 CST 2022] Single domain='xp.funnullv11.com'\n[Wed Apr  6 19:55:37 CST 2022] Getting domain auth token for each domain\n[Wed Apr  6 19:55:41 CST 2022] Getting webroot for domain='xp.funnullv11.com'\n[Wed Apr  6 19:55:43 CST 2022] Verifying: xp.funnullv11.com\n[Wed Apr  6 19:55:45 CST 2022] Pending, The CA is processing your order, please just wait. (1/30)\n[Wed Apr  6 19:55:49 CST 2022] Pending, The CA is processing your order, please just wait. (2/30)\n[Wed Apr  6 19:55:53 CST 2022] Pending, The CA is processing your order, please just wait. (3/30)\n[Wed Apr  6 19:55:57 CST 2022] xp.funnullv11.com:Verify error:Fetching http://xp.funnullv11.com/.well-known/acme-challenge/-2w-9CsrxEX0Bk45Q0D-ExalPfT88A7bvoEmUW6h990: Timeout during connect (likely firewall problem)\n[Wed Apr  6 19:55:57 CST 2022] Please add '--debug' or '--log' to check more details.\n[Wed Apr  6 19:55:57 CST 2022] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh\n",
      "type": "lets",
      "uid": 2,
      "update_at": null,
      "username": "jason"
    }
  ]
}
响应参数说明
字段名
字段说明
code
状态码(0正常)
count
总数
data
数据
data.auto_renew
自动续费
data.create_at2
创建时间
data.domain
域名
data.enable
启用
data.expire_time2
过期时间
data.id
证书ID
data.issue_state
失败原因
data.name
名称
data.retry_at2
重试时间
data.start_time
开始时间
data.sync_state
状态
data.task_enable
任务启用
data.task_ret
任务
data.type
类型
data.uid
uid
data.update_at
更新时间
data.username
用户名