Skip to content

Commit a9a9e09

Browse files
committed
fix(cli): use rustls native roots for WSS
tokio-tungstenite was built with rustls-tls-webpki-roots (compiled-in Mozilla bundle), so WSS could never trust private-CA relays (e.g. the homelab Home Lab CA on buzz.bjzy.me) regardless of keychain or SSL_CERT_FILE. Switch to rustls-tls-native-roots: macOS keychain / Linux system bundle, so private relays work where the CA is trusted.
1 parent cb6afa8 commit a9a9e09

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ moka = { version = "0.12", features = ["sync"] }
120120
futures-util = "0.3"
121121

122122
# WebSocket client (test client)
123-
tokio-tungstenite = { version = "0.29", features = ["rustls-tls-webpki-roots"] }
123+
# native roots: WSS must trust private-CA relays (e.g. homelab Home Lab CA);
124+
# webpki-roots baked in a Mozilla-only bundle and can never trust a private CA.
125+
tokio-tungstenite = { version = "0.29", features = ["rustls-tls-native-roots"] }
124126
url = "2"
125127

126128
# Property-based testing (dev-only)

0 commit comments

Comments
 (0)