Add required temp file
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com> Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
parent
92e227fa00
commit
0d113a0577
@ -307,7 +307,8 @@ Type the word '$value' to continue, or any other input to abort."
|
|||||||
|
|
||||||
# remove temp files
|
# remove temp files
|
||||||
clean_temp() {
|
clean_temp() {
|
||||||
for f in "$EASYRSA_TEMP_CONF" "$EASYRSA_TEMP_EXT" "$EASYRSA_TEMP_FILE_2" "$EASYRSA_TEMP_FILE_3"
|
for f in "$EASYRSA_TEMP_CONF" "$EASYRSA_TEMP_EXT" \
|
||||||
|
"$EASYRSA_TEMP_FILE_2" "$EASYRSA_TEMP_FILE_3" "$EASYRSA_TEMP_FILE_4"
|
||||||
do [ -f "$f" ] && rm "$f" 2>/dev/null
|
do [ -f "$f" ] && rm "$f" 2>/dev/null
|
||||||
done
|
done
|
||||||
} # => clean_temp()
|
} # => clean_temp()
|
||||||
@ -554,7 +555,7 @@ current CA keypair. If you intended to start a new CA, run init-pki first."
|
|||||||
out_file_tmp="$(mktemp "$out_file.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_3="$out_file_tmp"
|
out_file_tmp="$(mktemp "$out_file.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_3="$out_file_tmp"
|
||||||
# Get password from user if necessary
|
# Get password from user if necessary
|
||||||
if [ ! $nopass ]; then
|
if [ ! $nopass ]; then
|
||||||
out_key_pass_tmp="$(mktemp)"; EASYRSA_TEMP_FILE_3="$out_key_pass_tmp"
|
out_key_pass_tmp="$(mktemp)"; EASYRSA_TEMP_FILE_4="$out_key_pass_tmp"
|
||||||
echo
|
echo
|
||||||
printf "Enter New CA Key Passphrase: "
|
printf "Enter New CA Key Passphrase: "
|
||||||
hide_read_pass kpass
|
hide_read_pass kpass
|
||||||
@ -594,7 +595,7 @@ current CA keypair. If you intended to start a new CA, run init-pki first."
|
|||||||
|
|
||||||
mv "$out_key_tmp" "$out_key"; EASYRSA_TEMP_FILE_2=
|
mv "$out_key_tmp" "$out_key"; EASYRSA_TEMP_FILE_2=
|
||||||
mv "$out_file_tmp" "$out_file"; EASYRSA_TEMP_FILE_3=
|
mv "$out_file_tmp" "$out_file"; EASYRSA_TEMP_FILE_3=
|
||||||
[ -f "$out_key_pass_tmp" ] && rm "$out_key_pass_tmp"
|
[ -f "$out_key_pass_tmp" ] && rm "$out_key_pass_tmp" && EASYRSA_TEMP_FILE_4=
|
||||||
|
|
||||||
# Success messages
|
# Success messages
|
||||||
if [ $sub_ca ]; then
|
if [ $sub_ca ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user