Skip to content

feat: enable TLS certificate compression#8447

Merged
link2xt merged 1 commit into
mainfrom
link2xt/enable-cert-compression
Jul 22, 2026
Merged

feat: enable TLS certificate compression#8447
link2xt merged 1 commit into
mainfrom
link2xt/enable-cert-compression

Conversation

@link2xt

@link2xt link2xt commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Enabling brotli does not add new dependencies,
we have it already.
Documentation at https://docs.rs/rustls/0.23.42/rustls/compress/ recommends enabling at least brotli.

zlib feature is not enabled as it pulls in duplicate zlib-rs 0.6.6 zlib was even never supported in Chromium (while brotli is). It might still be interesting to enable it in the future because it seems to be the only option supported by OpenSSL and there may be servers that support zlib but not brotli.

RFC 8879 specifies zstd as well, but there is no feature to enable it yet.

This also brings back explicit TLS 1.2 feature that was reverted. We don't want TLS 1.2 support to be accidentally dropped if no dependencies explicitly require it anymore.

Enabling brotli does not add new dependencies,
we have it already.
Documentation at <https://docs.rs/rustls/0.23.42/rustls/compress/>
recommends enabling at least brotli.

zlib feature is not enabled as it pulls in duplicate zlib-rs 0.6.6
zlib was even never supported in Chromium (while brotli is).
It might still be interesting to enable it in the future
because it seems to be the only option supported by OpenSSL
and there may be servers that support zlib but not brotli.

RFC 8879 specifies zstd as well, but there is no feature to enable it yet.

This also brings back explicit TLS 1.2 feature that was reverted.
We don't want TLS 1.2 support to be accidentally dropped
if no dependencies explicitly require it anymore.
@link2xt
link2xt force-pushed the link2xt/enable-cert-compression branch from 0452a86 to 2523c01 Compare July 21, 2026 19:36
@link2xt
link2xt merged commit 3a913df into main Jul 22, 2026
31 checks passed
@link2xt
link2xt deleted the link2xt/enable-cert-compression branch July 22, 2026 14:03
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.

2 participants