Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Oct 20, 2024
1 parent 2f885b6 commit e38cfe3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
- v1.6.52(2024-10-20)
- 通过api部署托管证书
- fix

- v1.6.51(2024-09-27)
- fix:www的域名查询不到证书过期时间信息
Expand Down
29 changes: 22 additions & 7 deletions doc/source/manual/ssl-cert.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ www.baidu.com

通过调用远程api接口,将证书数据发送到远程接口,可自定义实现的部署逻辑

申请证书api推送格式

```json
{
"domains": [
Expand All @@ -66,15 +68,28 @@ www.baidu.com
}
```


托管证书api推送格式

```json
{
"domain": "www.baidu.com",
"ssl_certificate":"-----BEGIN CERTIFICATE-----\nMIIGdTCCBN2gAwI\n-----END CERTIFICATE-----",
"ssl_certificate_key":"-----BEGIN PRIVATE KEY-----\nMIIEvH+bpTwI=\n-----END PRIVATE KEY-----",
"start_time": "2023-01-04 14:33:39",
"expire_time": "2023-04-04 14:33:39"
}
```

参数说明

| 参数 | 类型 | 说明 |
| -| - | - |
| domains | `array<string>` | 域名列表
| ssl_certificate | string | 证书公钥
| ssl_certificate_key | string | 证书私钥
| start_time | string | 证书生效时间
| expire_time | string | 证书过期时间
| 参数 | 类型 | 说明 |
| -|--------------------------| - |
| domains | `array<string>` / string | 域名列表
| ssl_certificate | string | 证书公钥
| ssl_certificate_key | string | 证书私钥
| start_time | string | 证书生效时间
| expire_time | string | 证书过期时间


远程服务器实现示例
Expand Down

0 comments on commit e38cfe3

Please sign in to comment.