]> git.kaiwu.me - haproxy.git/commit
MEDIUM: ocsp: Create new do-ocsp-request action
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 1 Oct 2026 14:59:27 +0000 (16:59 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 2 Oct 2026 11:07:55 +0000 (13:07 +0200)
commit27f1221e3a2677ebd98354806e5cafdd4d854d16
tree9bd4ec575277835decc1da13d20dcb2f25703824
parent56dc04775f5c9ba070176bb21ebd3c2ad08c63d8
MEDIUM: ocsp: Create new do-ocsp-request action

Create a new 'do-ocsp-request' http-request and "tcp-request content"
action. When an SSL handshake occurred and was successful, the action
checks for a client certificate. If any is provided and it contains an
OCSP URI, we build an OCSP request and send it to the responder. No
other action is performed until a response is processed or a timeout
occurs.
When the response is received, we check its signature thanks to an
issuer certificate that should be in the issuer tree (see
'issers-chain-path' option), check its expiration dates and the client
certificate's status, and put the status and error reason (if any) in
the user provided "status-var" and "reason-var".
By default the action denies the request is the received status is not
'good' but this can be tuned thanks to the 'no-deny' option.
include/haproxy/ssl_ocsp-t.h
include/haproxy/ssl_ocsp.h
include/haproxy/stream-t.h
src/ssl_ocsp.c
src/stream.c