Skip to content

apply tls flags to wss urls in cli pub, sub and bench - #218

Merged
fabracht merged 1 commit into
mainfrom
cli-wss-tls-certs
Oct 11, 2026
Merged

fabracht merged 1 commit into
mainfrom
cli-wss-tls-certs

Conversation

@fabracht

Copy link
Copy Markdown
Contributor

mqttv5 pub, sub and bench only passed --ca-cert, --cert and --key to the client for mqtts://, ssl:// and quics:// URLs. With a wss:// URL the flags were dropped, so a broker behind a private CA failed with invalid peer certificate: UnknownIssuer even with the right CA file.

The four scheme checks now go through one uses_tls helper that includes wss://.

cli_wss_tls.rs starts a WSS broker on the test certs and runs pub, sub, bench --mode throughput and bench --mode connections against it with --ca-cert. All four fail with UnknownIssuer on main and pass with this change. Connections mode exits 0 even when every connect fails, so that test checks the failed count in the JSON output.

@fabracht
fabracht merged commit 52d711b into main Oct 11, 2026
16 checks passed
@fabracht
fabracht deleted the cli-wss-tls-certs branch October 11, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant