]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl/crt-list: bad behavior with "commit ssl cert"
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 15 Dec 2020 13:57:46 +0000 (14:57 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 15 Dec 2020 14:13:21 +0000 (15:13 +0100)
commita55685bfea0c95fd311b9bd0478950e534305786
tree3bb3f57e469121c1a657cb4853820bb195820151
parentcc043f66b7d6479866037bae00e27fd34fbee70b
BUG/MEDIUM: ssl/crt-list: bad behavior with "commit ssl cert"

In issue #1004, it was reported that it is not possible to remove
correctly a certificate after updating it when it came from a crt-list.

Indeed the "commit ssl cert" command on the CLI does not update the list
of ckch_inst in the crtlist_entry. Because of this, the "del ssl
crt-list" command does not remove neither the instances nor the SNIs
because they were never linked to the crtlist_entry.

This patch fixes the issue by inserting the ckch_inst in the
crtlist_entry once generated.

Must be backported as far as 2.2.
src/ssl_ckch.c