mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-03 04:48:42 +00:00
1512f65c98
Adds `chrome` as a new certificate store option alongside `mozilla`. Both stores filter out China-based CA certificates.
59 lines
1.5 KiB
Markdown
59 lines
1.5 KiB
Markdown
---
|
|
icon: material/new-box
|
|
---
|
|
|
|
!!! question "自 sing-box 1.12.0 起"
|
|
|
|
!!! quote "sing-box 1.13.0 中的更改"
|
|
|
|
:material-plus: [Chrome Root Store](#store)
|
|
|
|
# 证书
|
|
|
|
### 结构
|
|
|
|
```json
|
|
{
|
|
"store": "",
|
|
"certificate": [],
|
|
"certificate_path": [],
|
|
"certificate_directory_path": []
|
|
}
|
|
```
|
|
|
|
!!! note ""
|
|
|
|
当内容只有一项时,可以忽略 JSON 数组 [] 标签
|
|
|
|
### 字段
|
|
|
|
#### store
|
|
|
|
默认的 X509 受信任 CA 证书列表。
|
|
|
|
| 类型 | 描述 |
|
|
|-------------------|--------------------------------------------------------------------------------------------|
|
|
| `system`(默认) | 系统受信任的 CA 证书 |
|
|
| `mozilla` | [Mozilla 包含列表](https://wiki.mozilla.org/CA/Included_Certificates)(已移除中国 CA 证书) |
|
|
| `chrome` | [Chrome Root Store](https://g.co/chrome/root-policy)(已移除中国 CA 证书) |
|
|
| `none` | 空列表 |
|
|
|
|
#### certificate
|
|
|
|
要信任的证书行数组,PEM 格式。
|
|
|
|
#### certificate_path
|
|
|
|
!!! note ""
|
|
|
|
文件修改时将自动重新加载。
|
|
|
|
要信任的证书路径,PEM 格式。
|
|
|
|
#### certificate_directory_path
|
|
|
|
!!! note ""
|
|
|
|
文件修改时将自动重新加载。
|
|
|
|
搜索要信任的证书的目录路径,PEM 格式。 |