-
-
Notifications
You must be signed in to change notification settings - Fork 629
Description
Per https://community.letsencrypt.org/t/unable-to-get-certificate-error-reading-http-response-body-unexpected-eof/63987/, there are some configurations with buggy implementations of gzip or deflate encoding in HTTP replies. (This seems to involve reverse proxies getting confused about the semantics of Content-Length: headers, although I haven't entirely chased it down.)
While this is definitely a standards-conformance problem on the other implementations' end, and not a bug in Boulder's validation, there is no real benefit to using gzip encoding for sending HTTP-01 challenge tokens because these tokens are intentionally random; compressing random data, by the pigeonhole principle, should usually make it larger rather than smaller.
So, it doesn't seem like there would be any loss from simply not having Boulder send Accept-Encoding: , and dropping it might avoid an entire area of bugs and perhaps even attack surface on the Boulder side.