#OpenSSL since 3.5 defaults to sending massive TLS ClientHello messages with X25...

@harrysintonen@infosec.exchange

#OpenSSL since 3.5 defaults to sending massive TLS ClientHello messages with X25519MLKEM768 predicted keyshares. This breaks random firewalls and other networking equipment performing ClientHello inspection, resulting in broken TLS handshakes and end-user experience of "HTTPS is not working".

The fix is hidden in the wall of text that is docs.openssl.org/master/man3/S

"The DEFAULT list selects X25519MLKEM768 as one of the predicted keyshares. In rare cases this can lead to failures or timeouts because the resulting larger TLS Client Hello message may no longer fit in a single TCP segment and firewall software may erroneously disrupt the TLS handshake. If this is an issue or concern, prepending ?X25519MLKEM768: without a * prefix leads to its occurrence in the default list to be ignored as a duplicate, and along with that also the keyshare prediction. The group will then only be selected by servers that specifically expect it, after a Hello Retry Request (HRR). Servers that specifically prefer X25519MLKEM768, are much less likely to be found behind problematic firewalls."

TL;DR: Add SSL_CTX_set1_groups_list(ctx, "?X25519MLKEM768:DEFAULT")