From 385b7b279d2e0145a6929dc449dd0de9f4ae2c03 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Tue, 9 May 2023 23:45:55 +0100 Subject: [PATCH] build-ca: Unset crucial password variables Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 79bcdf9..08d1b54 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1566,7 +1566,7 @@ to the latest Easy-RSA release." die "build_ca - easyrsa_mktemp out_file_tmp" # Get passphrase from user if necessary - out_key_pass= + unset -v out_key_pass if [ "$EASYRSA_NO_PASS" ] then @@ -1580,8 +1580,7 @@ to the latest Easy-RSA release." else # Assign passphrase vars - p="" - q="" + unset -v p q # Get passphrase p get_passphrase p \