maskit opened a new pull request, #14106: URL: https://github.com/apache/trafficserver/pull/14106
On BoringSSL builds, ATS keeps one TLS context per certificate type and picks the RSA or EC context for each client. The destination-address lookup ignored the client's key type and checked EC entries first. A client that connects without a matching server name, to an address whose `ssl_multicert` line has both an RSA and an EC certificate, therefore always got the EC certificate. Clients that can only use RSA failed the handshake with a `handshake_failure` alert. For clients classified as RSA-only, the address lookup now takes the most specific line for the address (address and port before address alone), and that line's RSA certificate if it has one, else its EC certificate. Clients that can use EC are looked up as before. The EC fallback keeps single-certificate lines working for clients whose EC support ATS does not recognize, such as clients that support only P-384. OpenSSL builds are unaffected: they keep both certificates in one context and let OpenSSL choose. ## Testing New `tls/test_tls_dual_cert_dest_ip.py`. Every client connects without SNI, over TLS 1.2 and TLS 1.3. These fail without this change: - Dual address line: an ECDSA-only and an RSA-only client each get their own certificate. - Address-and-port RSA line over a bare-address EC line: an RSA-only client gets the RSA certificate. These pass without this change too, and guard the fallback rules: - RSA-only address line: a client that can use either key type gets the RSA certificate, not the catch-all line's EC one. - EC-only address line with a generated P-384 certificate: a client that supports only P-384 gets it. - Address-and-port P-384 line over a bare-address RSA line: a client that supports only P-384 gets the P-384 certificate. The new test and the existing certificate selection tests (`cert_selection`, `cert_select_plugin`, `dual_cert_selection*`, `dual_cert_default`) pass locally on BoringSSL and OpenSSL builds. The quiche and OpenSSL QUIC builds compile the change; quiche HTTP/3 uses the same lookup. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
