Skip to content

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 ​

WhatStatusWhereVerdict
acme (inbound)no: there is no field, the error unknown fieldcrates/tls-options/src/lib.rsmissing: certificates on a router without an external certbot
certificate_provider (inbound) and the certificate_providers sectionnothe 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 outboundno: tls.ech: not implemented yetmodules/system/tls/src/server.rs, client.rs (reject_unimplemented)missing
spoof: {sni, method} on an outboundnomodules/system/tls/src/client.rs (reject_unimplemented)missing: together with the route's tls_spoof (see routing.md)
engine: apple, engine: windowsnomodules/system/tls/src/client.rsplatform
min_version below 1.2no: min_version: TLS before 1.2 is not supportedmodules/system/tls/src/lib.rs (versions)junk: TLS 1.0/1.1 are obsolete (RFC 8996)
cipher_suitespartial: chooses only among rustls's TLS 1.2 suites; suites unknown to rustls are skipped with a warningmodules/system/tls/src/lib.rs (provider)junk: suites without rustls support (CBC, 3DES)
curve_preferences: P521nothe same placerarely needed
client_certificate_sha256 on an inboundnocrates/tls-options/src/lib.rsmissing (sing-box 1.15)
utls.fingerprint 360, androidno: TLS 1.2-only fingerprintslibs/tls13/src/presets.rsjunk: our uTLS stack is TLS 1.3-only
REALITY client: X25519MLKEM768 in the ClientHellodifferent: kept (sing-box cuts it out)libs/tls13/src/handshake.rs— (otherwise the Xray server will not accept it)
utls.fingerprint: randomizeddifferent: 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 processlibs/tls13/src/presets.rs— (a random set distinguishes the client from any browser)
uTLS after the ClientHello: TLS 1.2, PSK resumptionno: a server with TLS 1.2 gets protocol_version, tickets are dropped; the limitations are listed in docs/usage/blocks/tls.mdlibs/tls13/src/handshake.rs, conn.rsPSK — do; presets — update to the current uTLS versions
utls.fingerprint: firefoxdifferent: Firefox 148 with X25519MLKEM768, as in Xray's uTLS, not metacubex/utls's Firefox 120libs/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 ​

WhatStatusWhereVerdict
REALITY, uTLS, fragment, kTLS over QUICno (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_sninomodules/system/tls/src/client.rs—
REALITY server: handshake dial parameters other than the addressno: reality.handshake: dialer options are not implemented yetmodules/system/tls/src/server.rsmissing
kTLS (ktls: {tx, rx}; in sing-box kernel_tx, kernel_rx)present under the unstable-ktls feature; only suites the kernel supportslibs/tls13/src/ktls.rs—

GPL-3.0-or-later