set_ssl_protocol
设置指定网站允许的 TLS 协议版本。
- 路由:
POST /site - action:
set_ssl_protocol
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 set_ssl_protocol |
| siteName | 是 | String | 网站域名 |
| protocol | 是 | String | 协议版本,如 TLSv1.0、TLSv1.1、TLSv1.2、TLSv1.3 |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | true 设置成功 |
示例
请求
POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=set_ssl_protocol&siteName=testapi.bt.local&protocol=TLSv1.2
响应
{"status": true, "msg": "设置成功"}