MEDIUM: ssl: Add "new ssl ca-file" CLI command
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 16 Mar 2021 15:21:27 +0000 (16:21 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 17 May 2021 08:50:24 +0000 (10:50 +0200)
commit9f40fe02026440e513ff0f377f8bd18a72e5eff0
tree8b8364e4369ae914068b8fef5a684190c5a4da81
parent2a22e16cb8f1fd1eddac1b072fd6f7eea0bc2c4d
MEDIUM: ssl: Add "new ssl ca-file" CLI command

This patch adds the "new ssl ca-file <cafile>" CLI command. This command
can be used to create a new empty CA file that can be filled in thanks
to a "set ssl ca-file" command. It can then be used in a new crt-list
line.
The newly created CA file is added directly in the cafile tree so any
following "show ssl ca-file" call will display its name.

This fixes a subpart of GitHub issue #1057.
src/ssl_ckch.c