Skip to content

Commit

Permalink
revoke: Add old private inline file to list of deleted files
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Oct 22, 2024
1 parent 2edfb4e commit febef85
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -3204,7 +3204,8 @@ Run easyrsa without commands for usage and command help."
key_in="$in_dir/private/${file_name_base}.key"
req_in="$in_dir/reqs/${file_name_base}.req"
creds_in="$in_dir/${file_name_base}.creds"
inline_in="$in_dir/inline/${file_name_base}.inline"
inline_pub="$in_dir/inline/${file_name_base}.inline"
inline_pri="$in_dir/inline/private/${file_name_base}.inline"

# input cert for revocation: issued, expired or renewed
crt_in="${in_dir}/${cert_dir}/${file_name_base}.crt"
Expand Down Expand Up @@ -3372,7 +3373,8 @@ All PKCS files for commonName : $file_name_base

The inline credentials files:
* $creds_in
* $inline_in"
* $inline_pub
* $inline_pri"

confirm " Continue with revocation: " "yes" "
Please confirm that you wish to revoke the certificate
Expand Down Expand Up @@ -3448,12 +3450,9 @@ Failed to remove credentials file:
* $creds_in"
fi

# remove inline file
if [ -f "$inline_in" ]; then
rm "$inline_in" || warn "\
Failed to remove inline file:
* $inline_in"
fi
# remove inline files
rm -f "$inline_pub" "$inline_pri" || warn \
"revoke_move - Error trying to remove inline files."
} # => revoke_move()

# Move expired cert out of pki/issued to pki/expired
Expand Down

0 comments on commit febef85

Please sign in to comment.