maskit opened a new pull request, #14108:
URL: https://github.com/apache/trafficserver/pull/14108

   On BoringSSL builds, ATS gives each certificate of an `ssl_multicert` line 
its own TLS context. Each context was loaded with the whole line's settings, 
and the loader read the `ssl_ca_name` and `ssl_ocsp_name` entries at the 
position of the certificate within its context, which is always the first. On a 
line with both an RSA and an EC certificate, the second certificate was 
therefore served with the chain and the prefetched OCSP response configured for 
the first one. Clients that check the stapled response see a response for a 
different certificate.
   
   Each context now receives only its own certificate's entries. This applies 
at startup and on reload, over TCP and over HTTP/3.
   
   OpenSSL builds are unaffected: they keep both certificates in one context, 
where entries were already read by their position in the line.
   
   ## Testing
   
   New `tls/test_tls_dual_cert_chain_ocsp.py`. A line holds the existing OCSP 
test certificate (RSA) followed by an EC certificate generated at runtime, each 
with its own `ssl_ca_name` file and `ssl_ocsp_name` response. An ECDSA-only and 
an RSA-only client each check that they receive their own certificate's chain 
and an OCSP response for their own certificate, over TLS 1.2, TLS 1.3 and QUIC. 
The QUIC cases are skipped when ATS is built without QUIC or the test host's 
`openssl` is older than 3.5.
   
   Results on local builds:
   
   | Build | Without this change | With this change |
   | --- | --- | --- |
   | BoringSSL | TLS cases fail | pass |
   | BoringSSL with quiche | TLS and QUIC cases fail | pass |
   | OpenSSL 4 with OpenSSL QUIC | pass | pass |
   
   In every failure, the ECDSA client receives the RSA certificate's chain and 
OCSP response. The existing certificate selection, OCSP and `ssl_multicert` 
reload tests also pass on BoringSSL and OpenSSL builds with this change.
   


-- 
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]

Reply via email to