MINOR: ssl: Add the "show ssl cert foo.pem.ocsp" CLI command
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 10 Jun 2021 11:51:15 +0000 (13:51 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 10 Jun 2021 14:44:11 +0000 (16:44 +0200)
commit6056e61ae24d97e04cccee183f83311046e2fac8
treebbe2f89d47a2ddb4637af6ca27c046211f7a5207
parentda968f69c7b25f0b3412713d5aa4249ffdcd0188
MINOR: ssl: Add the "show ssl cert foo.pem.ocsp" CLI command

Add the ability to dump an OCSP response details through a call to "show
ssl cert cert.pem.ocsp". It can also be used on an ongoing transaction
by prefixing the certificate name with a '*'.
Even if the ckch structure holds an ocsp_response buffer, we still need
to look for the actual ocsp response entry in the ocsp response tree
rather than just dumping the ckch's buffer details because when updating
an ocsp response through a "set ssl ocsp-response" call, the
corresponding buffer in the ckch is not updated accordingly. So this
buffer, even if it is not empty, might hold an outdated ocsp response.
doc/management.txt
src/ssl_ckch.c