Upgrade to 306: Create $EASYRSA_SSL_CONF if required

Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
This commit is contained in:
Richard Bonhomme 2019-09-23 20:50:53 +01:00
parent 8adaf98fa9
commit 3f921404d6
No known key found for this signature in database
GPG Key ID: D7D49FA009D95091

View File

@ -1612,6 +1612,14 @@ Note: using Easy-RSA configuration from: $vars"
# Setting OPENSSL_CONF prevents bogus warnings (especially useful on win32)
export OPENSSL_CONF="$EASYRSA_SAFE_CONF"
# Upgrade to 306: Create $EASYRSA_SSL_CONF if it does not exist but only if $EASYRSA_PKI exists.
if [ ! -f "$EASYRSA_SSL_CONF" ] && [ -f "$EASYRSA/openssl-easyrsa.cnf" ] && [ -d "$EASYRSA_PKI" ];
then
cp "$EASYRSA/openssl-easyrsa.cnf" "$EASYRSA_SSL_CONF"
easyrsa_openssl makesafeconfopenvpn
fi
} # vars_setup()
# variable assignment by indirection when undefined; merely exports