]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: Dump options in "show ssl cert"
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 2 Oct 2025 13:32:46 +0000 (15:32 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 13 Oct 2025 08:38:52 +0000 (10:38 +0200)
Dump the values of the 'ocsp-update' and 'jwt' flags in the output of
'show ssl cert' CLI command.

src/ssl_ckch.c

index d64f46a256ae225739986208e14adb7d854df59f..f720f3729a87bd4b5fc9dc64cddce4f96a27d10a 100644 (file)
@@ -2246,6 +2246,9 @@ static int cli_io_handler_show_cert_detail(struct appctx *appctx)
                chunk_appendf(out, "SCTL filename: ");
                chunk_appendf(out, "%s\n", ckchs->conf.sctl);
        }
+       chunk_appendf(out, "Option: ocsp-update %s\n",
+                     ckchs->conf.ocsp_update_mode ? "on": "off");
+       chunk_appendf(out, "Option: jwt %s\n", ckchs->conf.jwt ? "on": "off");
 
        chunk_appendf(out, "Status: ");
        if (ckchs->data->cert == NULL)