#17673·netty

Apply BoringSSL's 16 KiB certificate-list floor to compressed certificates

Author: arnabnandy7Created Sep 29, 2026Updated Sep 29, 2026

Motivation

While adding default TLS certificate compression in #17548, tests using a small positive MAX_CERTIFICATE_LIST_BYTES value failed with UNCOMPRESSED_CERT_TOO_LARGE.

BoringSSL uses a 16 KiB minimum certificate-list limit for this path. Passing a smaller positive value through unchanged can therefore produce behavior that does not reflect the effective lower bound used when compressed certificates are processed.

This was discovered as part of #17548, but it is a separate behavioral change and should be reviewed independently.

Proposed change

  • Treat positive MAX_CERTIFICATE_LIST_BYTES values below 16 KiB as 16 KiB.
  • Preserve zero and negative-value behavior.
  • Document the effective minimum on OpenSslContextOption.MAX_CERTIFICATE_LIST_BYTES.
  • Add focused coverage for values below, at, and above the boundary.

Context

Split out from the review discussion in #17548.