]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: ssl/cli: keep the crt-store conf on "add ssl crt-list"
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 25 Nov 2026 17:04:35 +0000 (18:04 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 25 Nov 2026 16:51:43 +0000 (17:51 +0100)
commitea809b9fae0c0e752d3515860375fa62bdf12291
treee1e0965f4aa625dfc5bd2969cd355f7784000a12
parente4893fff0f4ceb53a7d24b23ae44fb12c5a5041a
BUG/MEDIUM: ssl/cli: keep the crt-store conf on "add ssl crt-list"

In cli_parse_add_crtlist(), a store without any instance takes the conf
parsed from the line, even when it was declared in a crt-store section.
So adding such a certificate to a crt-list over the CLI silently drops
the settings of its "load" line: the file names are no longer reported
by "show ssl cert", and above all "ocsp-update on" is lost, so no OCSP
update is scheduled for it. A line with other keywords also replaces the
ones of the crt-store, while this is refused in a crt-list file.

Let's only replace the conf when the store doesn't come from a
crt-store, and compare the confs otherwise, as is done at boot. This
relies on the previous patch to work on an updated certificate. This was
introduced by commit 1bc6e990f ("MEDIUM: ssl/cli: handle crt-store
keywords in crt-list over the CLI") in 3.0-dev12, so this should be
backported to 3.0.
src/ssl_crtlist.c