buzz icon indicating copy to clipboard operation
buzz copied to clipboard

private certs are ingnored

Open olegpulatov opened this issue 2 months ago • 2 comments

[!IMPORTANT] Do not include security vulnerabilities in a public issue. Report them privately through a GitHub security advisory.

Describe the bug cant use privace certificate

Steps to reproduce use own mkcert -cant connect

Expected behavior

SOLUTION: change desktop/src-tauri/Cargo.toml to rustls-tls-native-roots

Version and platform Find your version at the bottom of the Settings sidebar. Write "unknown" if you can't determine it.

  • Buzz version: latest
  • OS: mac

Logs / additional context Paste any relevant logs, error messages, or screenshots here.

olegpulatov avatar Sep 05 '26 20:09 olegpulatov

  • https://github.com/block/buzz/issues/2940
  • https://github.com/block/buzz/issues/5197
  • https://github.com/block/buzz/pull/2517
  • https://github.com/block/buzz/pull/7029

air3ijai avatar Sep 06 '26 05:09 air3ijai

Still reproduces in the CLI on 1.0.5 (macOS arm64). The desktop app was fixed by #2940, but the bundled buzz CLI still rejects a relay whose certificate chains to an OS-trusted private CA, on WebSocket connections only.

  • Relay behind Caddy with its local CA; the root is trusted in the macOS login keychain.
  • HTTP commands work (messages send, messages get, users set-status).
  • buzz users set-presence --status online fails: WebSocket error: IO error: invalid peer certificate: UnknownIssuer.
  • SSL_CERT_FILE=<root.pem> makes no difference.

The CLI binary links both rustls-platform-verifier (used by the HTTP client, which works) and tokio-tungstenite with WebPkiServerVerifier (bundled roots only). So the WebSocket path is the one left on webpki roots. #7233 (workspace crates) looks like the fix for the CLI. Could it get a review? Presence, and anything that subscribes over WebSocket, is unusable for CLI-driven agents against a self-hosted relay until then.

zbarbur avatar Nov 18 '26 17:11 zbarbur