mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
MINOR: ssl/cli: show certificate status in 'show ssl cert'
Display the status of the certificate in 'show ssl cert'. Example: Status: Empty Status: Unused Status: Used
This commit is contained in:
parent
ea987ed78a
commit
59c16fc2cb
@ -11254,6 +11254,14 @@ static int cli_io_handler_show_cert_detail(struct appctx *appctx)
|
||||
chunk_appendf(out, "*");
|
||||
chunk_appendf(out, "%s\n", ckchs->path);
|
||||
|
||||
chunk_appendf(out, "Status: ");
|
||||
if (ckchs->ckch->cert == NULL)
|
||||
chunk_appendf(out, "Empty\n");
|
||||
else if (LIST_ISEMPTY(&ckchs->ckch_inst))
|
||||
chunk_appendf(out, "Unused\n");
|
||||
else
|
||||
chunk_appendf(out, "Used\n");
|
||||
|
||||
if (ckchs->ckch->cert == NULL)
|
||||
goto end;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user