Skip to content

Commit

Permalink
easyrsa_openssl(): Simplify check for OPENSSL_CONF
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Dec 17, 2024
1 parent ff8705b commit 6ae2c29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -1214,9 +1214,10 @@ easyrsa_openssl() {
# Use $EASYRSA_SSL_CONF (local) or $OPENSSL_CONF (global)
if [ -f "$EASYRSA_SSL_CONF" ]; then
export OPENSSL_CONF="$EASYRSA_SSL_CONF"
elif [ -f "$OPENSSL_CONF" ]; then
export OPENSSL_CONF
else
[ -f "$OPENSSL_CONF" ] || \
die "easyrsa_openssl - OPENSSL_CONF undefined"
die "easyrsa_openssl - OPENSSL_CONF undefined"
fi
verbose "= easyrsa_openssl: OPENSSL_CONF = $OPENSSL_CONF"

Expand Down

0 comments on commit 6ae2c29

Please sign in to comment.