Skip to content

Commit

Permalink
easyrsa_openssl(): Use '-f' to verify SSL config file exists
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Aug 23, 2024
1 parent 54eacb4 commit eff3ecd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -1163,11 +1163,11 @@ easyrsa_openssl() {
rand) die "easyrsa_openssl: Illegal SSL command: rand"
esac

# Use local SSL cnf
if [ "$EASYRSA_SSL_CONF" ]; then
# Use $EASYRSA_SSL_CONF or $global_safe_ssl_cnf_tmp
if [ -f "$EASYRSA_SSL_CONF" ]; then
export OPENSSL_CONF="$EASYRSA_SSL_CONF"
else
[ "$OPENSSL_CONF" ] || \
[ -f "$OPENSSL_CONF" ] || \
die "easyrsa_openssl - OPENSSL_CONF undefined"
fi
verbose "= easyrsa_openssl: OPENSSL_CONF = $OPENSSL_CONF"
Expand Down

0 comments on commit eff3ecd

Please sign in to comment.