Skip to content

Commit

Permalink
Remove redundant file: index.txt.attr
Browse files Browse the repository at this point in the history
The function of 'index.txt.attr' is to set SSL option "unique_subject = no".
This function is handled by 'openssl-easyrsa.cnf' file.

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Sep 30, 2024
1 parent 020399f commit da3c249
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,12 @@ cleanup() {
print; cat "$easyrsa_err_log"; print
fi

# Remove redundant file: index.txt.attr
if [ -f "$EASYRSA_PKI"/index.txt.attr ]; then
rm -f "$EASYRSA_PKI"/index.txt.attr
verbose "cleanup: DELETED $EASYRSA_PKI/index.txt.attr"
fi

# undo changes BEFORE delete temp-dir
# Remove files when build_full()->sign_req() is interrupted
[ "$error_build_full_cleanup" ] && \
Expand Down Expand Up @@ -1308,7 +1314,7 @@ Run easyrsa without commands for usage and command help."
# Allow files to be regular files (or symlinks),
# but also pipes, for flexibility with ca.key
for i in ca.crt private/ca.key \
index.txt index.txt.attr serial
index.txt serial
do
if [ ! -f "$EASYRSA_PKI/$i" ] && \
[ ! -p "$EASYRSA_PKI/$i" ]
Expand Down

0 comments on commit da3c249

Please sign in to comment.