From: William Lallemand Date: Tue, 1 Dec 2026 16:59:52 +0000 (+0000) Subject: DOC: config: ssl_c_err, ssl_c_ca_err and ssl_c_ca_err_depth on resumed sessions X-Git-Tag: v3.5.0~16 X-Git-Url: https://git.kaiwu.me/http/%22../doc/static/%7B@url%7D?a=commitdiff_plain;h=af62a5a23b829668a314acde640429342b93f097;p=haproxy.git DOC: config: ssl_c_err, ssl_c_ca_err and ssl_c_ca_err_depth on resumed sessions The ssl_c_err, ssl_c_ca_err and ssl_c_ca_err_depth fetches are only filled by ssl_sock_bind_verifycbk(), which only runs during a full handshake: on a resumed session they read 0 (X509_V_OK), even when the session was established with a client certificate whose verification reported an error, ignored or not. ssl_c_verify reads the verify result stored in the session and is not affected. Document this limitation for each of the three fetches, and mention that access decisions should rather be taken on ssl_c_verify, which stays correct on resumed sessions. This must be backported to all stable branches. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index a99a78631..d3f7e717d 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -28016,12 +28016,21 @@ ssl_c_ca_err : integer verification process. Please refer to your SSL library's documentation to find the exhaustive list of error codes. + Not usable on resumed sessions (TLS ticket or session ID): the verification + only runs during a full handshake, so the fetch returns 0 (X509_V_OK) there, + even if the original verification reported an error, ignored or not. Use + "ssl_c_verify" instead, which stays correct on resumed sessions. + ssl_c_ca_err_depth : integer When the incoming connection was made over an SSL/TLS transport layer, returns the depth in the CA chain of the first error detected during the verification of the client certificate. If no error is encountered, 0 is returned. + Not usable on resumed sessions (TLS ticket or session ID): the verification + only runs during a full handshake, so the fetch returns 0 there. Use + "ssl_c_verify" instead, which stays correct on resumed sessions. + ssl_c_chain_der : binary Returns the DER formatted chain certificate presented by the client when the incoming connection was made over an SSL/TLS transport layer. When used for @@ -28041,6 +28050,11 @@ ssl_c_err : integer to your SSL library's documentation to find the exhaustive list of error codes. + Not usable on resumed sessions (TLS ticket or session ID): the verification + only runs during a full handshake, so the fetch returns 0 (X509_V_OK) there, + even if the original verification reported an error, ignored or not. Use + "ssl_c_verify" instead, which stays correct on resumed sessions. + ssl_c_i_dn([[,[,]]]) : string When the incoming connection was made over an SSL/TLS transport layer, returns the full distinguished name of the issuer of the certificate