Skip to content

Commit

Permalink
Remove redundant Create $EASYRSA_SSL_CONF
Browse files Browse the repository at this point in the history
The config file is unambiguously and previously created by
install_data_to_pki().

The config file location is exported in the previous command.

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Apr 9, 2022
1 parent ccec36d commit 484bc56
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -2225,15 +2225,6 @@ recommended - please remove it from there before continuing."
die "Failed to find Safe-SSL config file."
fi

# Upgrade to 306: Create $EASYRSA_SSL_CONF if it does not exist
# but only if $EASYRSA_PKI exists.
if [ -d "$EASYRSA_PKI" ] && [ -e "$EASYRSA/openssl-easyrsa.cnf" ] && \
[ ! -e "$EASYRSA_SSL_CONF" ]
then
cp "$EASYRSA/openssl-easyrsa.cnf" "$EASYRSA_SSL_CONF"
easyrsa_openssl makesafeconf
fi

else
# If the directory does not exist then we have not run init-pki
if mkdir -p "$EASYRSA_TEMP_DIR"; then
Expand Down

0 comments on commit 484bc56

Please sign in to comment.