MEDIUM: ssl: Add "show ssl ca-file" CLI command
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 16 Mar 2021 10:19:33 +0000 (11:19 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 17 May 2021 08:50:24 +0000 (10:50 +0200)
commit2a22e16cb8f1fd1eddac1b072fd6f7eea0bc2c4d
tree191ea8fd84e0341f22761bee35b885bcb1cd6b12
parent523f0e483a1f2bf68af2884a07ced08c431bc780
MEDIUM: ssl: Add "show ssl ca-file" CLI command

This patch adds the "show ssl ca-file [<cafile>[:index]]" CLI command.
This command can be used to display the list of all the known CA files
when no specific file name is specified, or to display the details of a
specific CA file when a name is given. If an index is given as well, the
command will only display the certificate having the specified index in
the CA file (if it exists).
The details displayed for each certificate are the same as the ones
showed when using the "show ssl cert" command on a single certificate.

This fixes a subpart of GitHub issue #1057.
reg-tests/ssl/set_ssl_cafile.vtc
src/ssl_ckch.c