URL: http://your_ip:port/api/cert/getPage
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取证书分页列表
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
current | int32 | 当前页数(从1开始) | true | - |
limit | int32 | 每页数量(默认为10) | true | - |
keywords | string | 查询关键字 | true | - |
Request-example:
curl -i http://your_ip:port/api/cert/getPage?current=bxjjjo&limit=10&keywords=14j9d5
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
└─count | int64 | 总记录数 | - |
└─curr | int32 | 起始页(从1开始) | - |
└─limit | int32 | 每页记录数 | - |
└─records | array | 列表内容 | - |
└─id | string | 主键 | - |
└─domain | string | 域名 | - |
└─pem | string | pem文件路径 | - |
└─key | string | key文件路径 | - |
└─type | int32 | 获取方式 0 申请证书 1 手动上传 2 DNS验证 | - |
└─makeTime | int64 | 签发时间戳 | - |
└─autoRenew | int32 | 是否自动续签 0否 1是 | - |
└─dnsType | string | dns提供商 ali:阿里云 dp:腾讯云 cf:Cloudflare gd:Godaddy | - |
└─dpId | string | dpId(腾讯云需要的参数) | - |
└─dpKey | string | dpKey(腾讯云需要的参数) | - |
└─aliKey | string | aliKey(阿里云需要的参数) | - |
└─aliSecret | string | aliSecret(阿里云需要的参数) | - |
└─cfEmail | string | cfEmail(Cloudflare需要的参数) | - |
└─cfKey | string | cfKey(Cloudflare需要的参数) | - |
└─gdKey | string | gdKey(Godaddy需要的参数) | - |
└─gdSecret | string | gdSecret(Godaddy需要的参数) | - |
└─hwUsername | string | hwUsername(华为云需要的参数) | - |
└─hwPassword | string | hwPassword(华为云需要的参数) | - |
└─hwProjectID | string | hwProjectID(华为云需要的参数) | - |
Response-example:
{
"success":true,
"status":"rtzq7v",
"msg":"pju3a3",
"obj":{
"count":918,
"curr":651,
"limit":10,
"records":[
{
"id":"45",
"domain":"xn--m8s.info",
"pem":"zf41n8",
"key":"rbh07g",
"type":415,
"makeTime":1641871596310,
"autoRenew":285,
"dnsType":"0ssekf",
"dpId":"45",
"dpKey":"9x4so7",
"aliKey":"y0erig",
"aliSecret":"cqumh4",
"cfEmail":"弘文.邱@hotmail.com",
"cfKey":"lnbox7",
"gdKey":"ek7sgu",
"gdSecret":"kk9ln7",
"hwUsername":"鹤轩.白",
"hwPassword":"2gauxu",
"hwProjectID":"45"
}
]
}
}
URL: http://your_ip:port/api/cert/addOver
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 添加或编辑证书
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id | string | 主键 | false | - |
domain | string | 域名 | false | - |
pem | string | pem文件路径 | false | - |
key | string | key文件路径 | false | - |
type | int32 | 获取方式 0 申请证书 1 手动上传 2 DNS验证 | false | - |
makeTime | int64 | 签发时间戳 | false | - |
autoRenew | int32 | 是否自动续签 0否 1是 | false | - |
dnsType | string | dns提供商 ali:阿里云 dp:腾讯云 cf:Cloudflare gd:Godaddy | false | - |
dpId | string | dpId(腾讯云需要的参数) | false | - |
dpKey | string | dpKey(腾讯云需要的参数) | false | - |
aliKey | string | aliKey(阿里云需要的参数) | false | - |
aliSecret | string | aliSecret(阿里云需要的参数) | false | - |
cfEmail | string | cfEmail(Cloudflare需要的参数) | false | - |
cfKey | string | cfKey(Cloudflare需要的参数) | false | - |
gdKey | string | gdKey(Godaddy需要的参数) | false | - |
gdSecret | string | gdSecret(Godaddy需要的参数) | false | - |
hwUsername | string | hwUsername(华为云需要的参数) | false | - |
hwPassword | string | hwPassword(华为云需要的参数) | false | - |
hwProjectID | string | hwProjectID(华为云需要的参数) | false | - |
Request-example:
curl -i http://your_ip:port/api/cert/addOver?hwUsername=鹤轩.白&hwProjectID=45&updateTime=1641871596310&cfKey=52rz4k&type=338&aliSecret=advc3u&id=45&dnsType=0vd2dj&hwPassword=zwow4g&domain=xn--m8s.info&gdSecret=n7jzu8&dpId=45&gdKey=gd3akm&createTime=1641871596310&aliKey=aiptn8&pem=kbou05&key=3t7rh7&autoRenew=918&makeTime=1641871596310&dpKey=uiis2k&cfEmail=弘文.邱@hotmail.com
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
Response-example:
{
"success":true,
"status":"rygbuz",
"msg":"qhz0rj",
"obj":{
"waring":"You may have used non-display generics."
}
}
URL: http://your_ip:port/api/cert/getTxtValue
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取域名解析码
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
certId | string | 证书id | true | - |
Request-example:
curl -i http://your_ip:port/api/cert/getTxtValue?certId=45
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
└─id | string | 主键 | - |
└─certId | string | 证书id | - |
└─domain | string | 域名 | - |
└─type | string | 解析类型 | - |
└─value | string | 解析值 | - |
Response-example:
{
"success":true,
"status":"r4q56m",
"msg":"l3v3mx",
"obj":[
{
"id":"45",
"certId":"45",
"domain":"xn--m8s.info",
"type":"bv7bl3",
"value":"r1bi58"
}
]
}
URL: http://your_ip:port/api/cert/setAutoRenew
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 设置证书自动续签
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id | string | 证书id | true | - |
autoRenew | int32 | 是否自动续签:0否 1是 | true | - |
Request-example:
curl -i http://your_ip:port/api/cert/setAutoRenew?id=45&autoRenew=4guu91
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
Response-example:
{
"success":true,
"status":"h4niqj",
"msg":"24dt42",
"obj":{
"waring":"You may have used non-display generics."
}
}
URL: http://your_ip:port/api/cert/del
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 删除证书
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id | string | 证书id | true | - |
Request-example:
curl -i http://your_ip:port/api/cert/del?id=45
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
Response-example:
{
"success":true,
"status":"v6akjn",
"msg":"k25al6",
"obj":{
"waring":"You may have used non-display generics."
}
}
URL: http://your_ip:port/api/cert/apply
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 执行申请
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id | string | 证书id | true | - |
type | string | 申请类型 issue:申请 renew:续签 | true | - |
Request-example:
curl -i http://your_ip:port/api/cert/apply?type=jc5fa8&id=45
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
└─id | string | 主键 | - |
└─certId | string | 证书id | - |
└─domain | string | 域名 | - |
└─type | string | 解析类型 | - |
└─value | string | 解析值 | - |
Response-example:
{
"success":true,
"status":"6fbeag",
"msg":"jgz72k",
"obj":[
{
"id":"45",
"certId":"45",
"domain":"xn--m8s.info",
"type":"exfr63",
"value":"yi5aq8"
}
]
}
URL: http://your_ip:port/api/cert/download
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 下载证书文件
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id | string | 证书id | true | - |
Request-example:
curl -i http://your_ip:port/api/cert/download?id=45
Response-example:
This api return nothing.