From fcb10115a94b07b14d8b37542623b0842368fde2 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Wed, 30 Aug 2023 12:02:26 +0100 Subject: [PATCH] install_data_to_pki: Never create a pki/vars.example file Having a pki/vars.example file exist, leads to the incorrect conclusion that a pki/vars file is suitable. Therefore, never create an example file. Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index e1c43cbea..05c7d4eba 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1456,7 +1456,6 @@ install_data_to_pki() { # Find other files - Omitting "$vars_file" for source in \ - "$vars_file_example" \ "$ssl_cnf_file" \ # EOL do @@ -1481,16 +1480,6 @@ install_data_to_pki $context: $EASYRSA_EXT_DIR" return fi - # Always require a pki/vars.example file - if [ -e "$EASYRSA_PKI/vars.example" ];then - : # ok - else - create_vars_example > "$EASYRSA_PKI/vars.example" || \ - die "install_data_to_pki - create_vars_example FAILED" - verbose "\ -install_data_to_pki $context: create_vars_example OK" - fi - # Create PKI/vars from PKI/example unset -v new_vars_true if [ "$found_vars" = 1 ] || [ "$user_vars_true" ] || \