mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-01 14:18:36 +00:00
Fix OpenVPN TLS cipher and group compatibility
This commit is contained in:
@@ -365,7 +365,7 @@ keys for compatibility with immutable peers. Use it only when the peer cannot
|
||||
be upgraded. `legacy` accepts SHA-1 but rejects MD5 signatures; `preferred`
|
||||
requires stronger signatures and keys.
|
||||
|
||||
When `suiteb` is selected and `tls.cipher` is empty, the TLS 1.2 cipher list defaults to the Suite B ECDHE-ECDSA AES-GCM suites.
|
||||
When `suiteb` is selected, the TLS 1.2 cipher list defaults to the Suite B ECDHE-ECDSA AES-GCM suites when `tls.cipher` is empty, and the TLS groups default to `secp256r1` and `secp384r1` when `tls.groups` is empty.
|
||||
|
||||
### tls.ns_certificate_type
|
||||
|
||||
@@ -389,15 +389,15 @@ The value cannot be lower than `tls.version_min`.
|
||||
|
||||
### tls.cipher
|
||||
|
||||
Colon-separated OpenSSL cipher suite names allowed for TLS 1.2 and earlier.
|
||||
Colon-separated OpenSSL or IANA cipher suite names allowed for TLS 1.2 and earlier, such as `ECDHE-ECDSA-AES256-GCM-SHA384` or `TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384`. The order of the list is ignored.
|
||||
|
||||
The default TLS cipher suites are used when empty.
|
||||
|
||||
### tls.groups
|
||||
|
||||
Colon-separated TLS key exchange groups in preference order.
|
||||
Colon-separated TLS key exchange groups. The order of the list is ignored.
|
||||
|
||||
Supported groups are `X25519`, `SECP256R1`, `SECP384R1`, and `SECP521R1`, including their common OpenSSL and NIST aliases.
|
||||
Supported groups are `X25519`, `X25519MLKEM768`, `secp256r1`, `secp384r1`, and `secp521r1`, including their common OpenSSL and NIST aliases. Names are case-insensitive.
|
||||
|
||||
The default TLS groups are used when empty.
|
||||
|
||||
|
||||
@@ -359,7 +359,7 @@ OpenVPN 控制通道 TLS 配置。
|
||||
|
||||
`insecure` 为兼容不可变对端而接受使用 MD5 或 SHA-1 签名的证书链和较小的旧密钥,仅应在对端无法升级时使用。`legacy` 接受 SHA-1 但拒绝 MD5 签名;`preferred` 要求更强的签名和密钥。
|
||||
|
||||
选择 `suiteb` 且 `tls.cipher` 为空时,TLS 1.2 cipher 列表默认使用 Suite B ECDHE-ECDSA AES-GCM 套件。
|
||||
选择 `suiteb` 时,`tls.cipher` 为空则 TLS 1.2 cipher 列表默认使用 Suite B ECDHE-ECDSA AES-GCM 套件,`tls.groups` 为空则 TLS group 默认使用 `secp256r1` 和 `secp384r1`。
|
||||
|
||||
### tls.ns_certificate_type
|
||||
|
||||
@@ -383,15 +383,15 @@ OpenVPN 控制通道 TLS 配置。
|
||||
|
||||
### tls.cipher
|
||||
|
||||
TLS 1.2 及更低版本允许的 OpenSSL cipher suite 名称,以冒号分隔。
|
||||
TLS 1.2 及更低版本允许的 OpenSSL 或 IANA cipher suite 名称,以冒号分隔,如 `ECDHE-ECDSA-AES256-GCM-SHA384` 或 `TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384`。列表的顺序被忽略。
|
||||
|
||||
为空时使用默认 TLS cipher suite。
|
||||
|
||||
### tls.groups
|
||||
|
||||
按偏好顺序排列的 TLS key exchange group,以冒号分隔。
|
||||
以冒号分隔的 TLS key exchange group。列表的顺序被忽略。
|
||||
|
||||
支持 `X25519`、`SECP256R1`、`SECP384R1` 和 `SECP521R1`,包括其常用 OpenSSL 和 NIST 别名。
|
||||
支持 `X25519`、`X25519MLKEM768`、`secp256r1`、`secp384r1` 和 `secp521r1`,包括其常用 OpenSSL 和 NIST 别名,不区分大小写。
|
||||
|
||||
为空时使用默认 TLS group。
|
||||
|
||||
|
||||
@@ -351,7 +351,7 @@ keys for compatibility with immutable peers. Use it only when the peer cannot
|
||||
be upgraded. `legacy` accepts SHA-1 but rejects MD5 signatures; `preferred`
|
||||
requires stronger signatures and keys.
|
||||
|
||||
When `suiteb` is selected and `tls.cipher` is empty, the TLS 1.2 cipher list defaults to the Suite B ECDHE-ECDSA AES-GCM suites.
|
||||
When `suiteb` is selected, the TLS 1.2 cipher list defaults to the Suite B ECDHE-ECDSA AES-GCM suites when `tls.cipher` is empty, and the TLS groups default to `secp256r1` and `secp384r1` when `tls.groups` is empty.
|
||||
|
||||
### tls.ns_certificate_type
|
||||
|
||||
@@ -367,13 +367,17 @@ Maximum TLS version. The maximum supported version is used by default.
|
||||
|
||||
### tls.cipher
|
||||
|
||||
Colon-separated OpenSSL cipher suite names allowed for TLS 1.2 and earlier.
|
||||
Colon-separated OpenSSL or IANA cipher suite names allowed for TLS 1.2 and earlier, such as `ECDHE-ECDSA-AES256-GCM-SHA384` or `TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384`. The order of the list is ignored.
|
||||
|
||||
The default TLS cipher suites are used when empty.
|
||||
|
||||
### tls.groups
|
||||
|
||||
Colon-separated TLS key exchange groups in preference order.
|
||||
Colon-separated TLS key exchange groups. The order of the list is ignored.
|
||||
|
||||
Supported groups are `X25519`, `X25519MLKEM768`, `secp256r1`, `secp384r1`, and `secp521r1`, including their common OpenSSL and NIST aliases. Names are case-insensitive.
|
||||
|
||||
The default TLS groups are used when empty.
|
||||
|
||||
### tls.control_wrap
|
||||
|
||||
|
||||
@@ -346,7 +346,7 @@ OpenVPN `remote-cert-ku` 格式的客户端证书 Key Usage mask。
|
||||
|
||||
`insecure` 为兼容不可变对端而接受使用 MD5 或 SHA-1 签名的证书链和较小的旧密钥,仅应在对端无法升级时使用。`legacy` 接受 SHA-1 但拒绝 MD5 签名;`preferred` 要求更强的签名和密钥。
|
||||
|
||||
选择 `suiteb` 且 `tls.cipher` 为空时,TLS 1.2 cipher 列表默认使用 Suite B ECDHE-ECDSA AES-GCM 套件。
|
||||
选择 `suiteb` 时,`tls.cipher` 为空则 TLS 1.2 cipher 列表默认使用 Suite B ECDHE-ECDSA AES-GCM 套件,`tls.groups` 为空则 TLS group 默认使用 `secp256r1` 和 `secp384r1`。
|
||||
|
||||
### tls.ns_certificate_type
|
||||
|
||||
@@ -362,13 +362,17 @@ OpenVPN `remote-cert-ku` 格式的客户端证书 Key Usage mask。
|
||||
|
||||
### tls.cipher
|
||||
|
||||
TLS 1.2 及更低版本允许的 OpenSSL cipher suite 名称,以冒号分隔。
|
||||
TLS 1.2 及更低版本允许的 OpenSSL 或 IANA cipher suite 名称,以冒号分隔,如 `ECDHE-ECDSA-AES256-GCM-SHA384` 或 `TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384`。列表的顺序被忽略。
|
||||
|
||||
为空时使用默认 TLS cipher suite。
|
||||
|
||||
### tls.groups
|
||||
|
||||
按偏好顺序排列的 TLS key exchange group,以冒号分隔。
|
||||
以冒号分隔的 TLS key exchange group。列表的顺序被忽略。
|
||||
|
||||
支持 `X25519`、`X25519MLKEM768`、`secp256r1`、`secp384r1` 和 `secp521r1`,包括其常用 OpenSSL 和 NIST 别名,不区分大小写。
|
||||
|
||||
为空时使用默认 TLS group。
|
||||
|
||||
### tls.control_wrap
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ require (
|
||||
github.com/sagernet/sing-cloudflared v0.1.4-0.20261108120326-83391fb7b139
|
||||
github.com/sagernet/sing-mux v0.3.10-0.20261110064256-375087483ea2
|
||||
github.com/sagernet/sing-openconnect v0.1.1-0.20261110063157-f28cbff7da8d
|
||||
github.com/sagernet/sing-openvpn v0.1.1-0.20261109120739-4e95f1a2d109
|
||||
github.com/sagernet/sing-openvpn v0.1.1-0.20261110110144-d960c91f9c4e
|
||||
github.com/sagernet/sing-quic v0.7.2-0.20261109110824-5253224b67cf
|
||||
github.com/sagernet/sing-shadowsocks v0.2.9-0.20260929204512-65740e0f0e3e
|
||||
github.com/sagernet/sing-shadowsocks2 v0.2.2-0.20261110092058-52ade8ab7e95
|
||||
|
||||
@@ -326,8 +326,8 @@ github.com/sagernet/sing-mux v0.3.10-0.20261110064256-375087483ea2 h1:bGC7//2xTN
|
||||
github.com/sagernet/sing-mux v0.3.10-0.20261110064256-375087483ea2/go.mod h1:jricpwCOndDsTEM1TM3piJvhL/2Mm7OhLkm+JadJJ1Q=
|
||||
github.com/sagernet/sing-openconnect v0.1.1-0.20261110063157-f28cbff7da8d h1:WaRFTcl/yGQZV++eOy62C3dgwIitgvNn+isaZ6Tuj7M=
|
||||
github.com/sagernet/sing-openconnect v0.1.1-0.20261110063157-f28cbff7da8d/go.mod h1:4AKZLVcvY3r54UaK2Gbnm7aN8pOwdLz+y4EP0QFZ5Eg=
|
||||
github.com/sagernet/sing-openvpn v0.1.1-0.20261109120739-4e95f1a2d109 h1:kCjEqPEVMcvyyY2XSOhXAKptKBUPbcJoPSudCUDYKSc=
|
||||
github.com/sagernet/sing-openvpn v0.1.1-0.20261109120739-4e95f1a2d109/go.mod h1:PWX7WygD8jpwfqfaGNySXpJYTn0SOwjBI1BKHHC2+Bw=
|
||||
github.com/sagernet/sing-openvpn v0.1.1-0.20261110110144-d960c91f9c4e h1:L2jIPeQkavSuXwgqIJKco9Ut7bnhJhT7gfTfLkPWaQk=
|
||||
github.com/sagernet/sing-openvpn v0.1.1-0.20261110110144-d960c91f9c4e/go.mod h1:PWX7WygD8jpwfqfaGNySXpJYTn0SOwjBI1BKHHC2+Bw=
|
||||
github.com/sagernet/sing-quic v0.7.2-0.20261109110824-5253224b67cf h1:cwox2wupg1HrI0+e6IufFrkMCRf9qFw6KV2cJR9bcZ4=
|
||||
github.com/sagernet/sing-quic v0.7.2-0.20261109110824-5253224b67cf/go.mod h1:rJFeVxbEej2iuyeCJ3drKW+p5rOgtLIW3XhZ6ty7Fig=
|
||||
github.com/sagernet/sing-shadowsocks v0.2.9-0.20260929204512-65740e0f0e3e h1:LKgE/uuqp/D2kgxYViOz8vf4slaCUfpFywXjtuwD5gU=
|
||||
|
||||
Reference in New Issue
Block a user