model-writtenrun 4742 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Gunnar "Nick" Bluth reported that replacing an RSA server certificate with an RSA-PSS certificate broke SCRAM authentication with a digest lookup error, tracing the failure to OpenSSL returning an undefined digest identifier #1.
- Heikki Linnakangas reproduced the failure, identified disabling channel binding as a workaround, and explored both graceful fallback and extracting the hash algorithm from RSA-PSS parameters #3.
- Heikki's first patch suppressed channel-binding advertisement when the server could not hash its certificate and improved client errors; he rejected automatic client fallback because it would permit a downgrade attack #4.
- Michael Paquier found an OpenSSL compatibility problem and questioned reload error handling and silently disabling protection #5; Heikki then proposed using SHA-256 for undefined cases, while Jacob Champion objected to failing open and emphasized that the reported certificate already specified a hash algorithm #6 #7.
- Heikki developed a proposal for a new tls-server-end-point-sha-256 binding type, while Michael questioned its compatibility and downgrade implications; Heikki explained the intended negotiation and why a client cannot safely disable binding merely because it cannot interpret a certificate #8 #9 #10 #11 #12.
- Jacob supplied a smaller replacement using OpenSSL 1.1.1's X509_get_signature_info() to support RSA-PSS directly, arguing against inventing a binding type and leaving general undefined-hash and EdDSA support for later #13; Heikki reviewed the API behavior, endorsed the approach, and requested Meson and MSVC support #14.
- Michael combined Jacob's implementation with Heikki's test infrastructure, added Meson and MSVC detection, and gated successful RSA-PSS channel-binding tests on API availability after testing OpenSSL versions down to 1.0.1 #15.
- Gunnar said the combined patch looked good #16, and Jacob approved it after testing the fallback with LibreSSL 3.5.3 #17.
- Michael committed #15 as 9244c11afe with only comment whitespace changes and a completed commit message, then reported backpatching through PostgreSQL 11 #18.
- The RSA-PSS fix was complete at the thread's close, with new automated tests included from PostgreSQL 15 onward and manual RSA-PSS checks on older branches; Michael left older-branch certificate-generation failures as a possible follow-up #18.