English
TLS
Ours: modules/system/tls (rustls for ordinary TLS, our own libs/tls13 for uTLS and REALITY), the options — crates/tls-options/src/lib.rs. The reference: option/tls.go, common/tls of sing-box v1.14.4.
Fields
| What | Status | Where | Verdict |
|---|---|---|---|
acme (inbound) | no: there is no field, the error unknown field | crates/tls-options/src/lib.rs | missing: certificates on a router without an external certbot |
certificate_provider (inbound) and the certificate_providers section | no | the same place; the section is not in crates/native-config/src/entity.rs (TOP_LEVEL) | missing: together with acme; the tailscale and Cloudflare Origin CA providers — rarely needed |
ech on inbound and outbound | no: tls.ech: not implemented yet | modules/system/tls/src/server.rs, client.rs (reject_unimplemented) | missing |
spoof: {sni, method} on an outbound | no | modules/system/tls/src/client.rs (reject_unimplemented) | missing: together with the route's tls_spoof (see routing.md) |
engine: apple, engine: windows | no | modules/system/tls/src/client.rs | platform |
min_version below 1.2 | no: min_version: TLS before 1.2 is not supported | modules/system/tls/src/lib.rs (versions) | junk: TLS 1.0/1.1 are obsolete (RFC 8996) |
cipher_suites | partial: chooses only among rustls's TLS 1.2 suites; suites unknown to rustls are skipped with a warning | modules/system/tls/src/lib.rs (provider) | junk: suites without rustls support (CBC, 3DES) |
curve_preferences: P521 | no | the same place | rarely needed |
client_certificate_sha256 on an inbound | no | crates/tls-options/src/lib.rs | missing (sing-box 1.15) |
utls.fingerprint 360, android | no: TLS 1.2-only fingerprints | libs/tls13/src/presets.rs | junk: our uTLS stack is TLS 1.3-only |
REALITY client: X25519MLKEM768 in the ClientHello | different: kept (sing-box cuts it out) | libs/tls13/src/handshake.rs | — (otherwise the Xray server will not accept it) |
utls.fingerprint: randomized | different: one of the real Chrome versions (133 or 131), chosen once per process; in sing-box — uTLS's generator with a random set of ciphers and extensions, also once per process | libs/tls13/src/presets.rs | — (a random set distinguishes the client from any browser) |
| uTLS after the ClientHello: TLS 1.2, PSK resumption | no: a server with TLS 1.2 gets protocol_version, tickets are dropped; the limitations are listed in docs/usage/blocks/tls.md | libs/tls13/src/handshake.rs, conn.rs | PSK — do; presets — update to the current uTLS versions |
utls.fingerprint: firefox | different: Firefox 148 with X25519MLKEM768, as in Xray's uTLS, not metacubex/utls's Firefox 120 | libs/tls13/src/presets.rs | — (Xray's REALITY server rejects a ClientHello without the hybrid) |
Beyond the reference: verify_names, certificate_sha256 on an outbound (from Xray's verifyPeerCertByName, pinnedPeerCertSha256) and the REALITY ML-DSA-65 signature (mldsa65_seed on an inbound, mldsa65_verify on an outbound — Xray's mldsa65Seed, mldsa65Verify).
Combinations
| What | Status | Where | Verdict |
|---|---|---|---|
REALITY, uTLS, fragment, kTLS over QUIC | no (Hysteria, TUIC, DoQ) | modules/system/tls/src/client.rs, server.rs | — (the reference has no REALITY or uTLS over QUIC either) |
REALITY + spoof, verify_names, certificate_sha256, disable_sni | no | modules/system/tls/src/client.rs | — |
REALITY server: handshake dial parameters other than the address | no: reality.handshake: dialer options are not implemented yet | modules/system/tls/src/server.rs | missing |
kTLS (ktls: {tx, rx}; in sing-box kernel_tx, kernel_rx) | present under the unstable-ktls feature; only suites the kernel supports | libs/tls13/src/ktls.rs | — |