From 3c9513f4063a6a69411d0eda39c26bc4b0c5605e Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Thu, 8 Sep 2022 21:54:24 +0100 Subject: [PATCH] renew-req: Add command option 'nopass' Closes: #681 Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index d1dc23896..fb578b4ba 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1883,6 +1883,7 @@ Run easyrsa without commands for usage and commands." while [ "$1" ]; do case "$1" in text) text=1 ;; + nopass) nopass=1 ;; *) warn "Ignoring unknown command option: '$1'" esac shift @@ -1935,6 +1936,7 @@ $EASYRSA_EXTRA_EXTS" # Generate request easyrsa_openssl req -utf8 -batch -new \ -key "$key_in" -out "$req_out_tmp" \ + ${nopass+ "$no_password"} \ ${text+ -text} \ ${EASYRSA_PASSIN:+-passin "$EASYRSA_PASSIN"} \ || die "Failed to generate request"