From 4c5c9d928f5cbafddbe01ecd26d654d0aa04691d Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Wed, 13 Dec 2023 02:12:13 +0000 Subject: [PATCH] Add 'confirm' to command 'write legacy-hard': Confirm file OVERWRITE Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 3 +++ 1 file changed, 3 insertions(+) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 396f8f189..9081c2312 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -6350,6 +6350,9 @@ case "$cmd" in ;; legacy-hard) # over-write YES + confirm "${NL} Confirm OVER-WRITE files ? " yes " +'legacy-hard' will OVER-WRITE all legacy files to default settings. +Legacy files: openssl-easyrsa.cnf and x509-types/ directory." shift legacy_file_over_write=1 legacy_files "$@"