Fix OpenVPN TLS cipher and group compatibility

This commit is contained in:
世界
2026-11-10 11:14:08 +00:00
parent 15ad18ab56
commit b03f8b149f
6 changed files with 25 additions and 17 deletions
@@ -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