From d749d0d16e93f017254086f96543579f2ff33f71 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Fri, 12 Apr 2024 00:49:39 +0100 Subject: [PATCH] Remove command 'init-pki', option 'soft', undefined usage Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 361d36651..158bf3047 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -122,11 +122,6 @@ Usage: easyrsa [ OPTIONS.. ] [ cmd-opts.. ]" * init-pki [ cmd-opts ] Removes & re-initializes the PKI directory for a new PKI" - - opts=" - * hard - Recursively delete the PKI directory (default). - * soft - Keep the named PKI directory and PKI 'vars' file - intact." ;; build-ca) text=" @@ -1339,24 +1334,6 @@ and initialize a fresh PKI here." rm -rf "$EASYRSA_PKI" || \ die "init-pki hard reset failed." ;; - soft) - # There is no unit test for a soft reset - for i in ca.crt crl.pem \ - issued private reqs inline revoked renewed \ - serial serial.old index.txt index.txt.old \ - index.txt.attr index.txt.attr.old \ - ecparams certs_by_serial - do - # # # shellcheck disable=SC2115 # Use "${var:?}" - target="$EASYRSA_PKI/$i" - if [ "${target%/*}" ]; then - rm -rf "$target" || \ - die "init-pki soft reset(1) failed!" - else - die "init-pki soft reset(2) failed!" - fi - done - ;; *) user_error "Unknown reset type: $reset" esac