Fix error revoking a key with old openvpn layout.

This commit is contained in:
Christoph 2020-09-29 13:14:21 +02:00
parent bae3555f84
commit c1a50110a9

View File

@ -346,6 +346,17 @@ else
error "$(cat $log_file)"
fi
if [[ -z "$KEY_CONFIG" ]] ; then
if [[ -h "${EASY_RSA_DIR}/openssl.cnf" ]] ; then
KEY_CONFIG="$(realpath "${EASY_RSA_DIR}/openssl.cnf")"
fi
fi
if [[ -z "$KEY_CONFIG" ]] ; then
fatal "No OpenSSL configuration file found.."
fi
# ---
# - Revoke Key
# ---