Fix error revoking a key with old openvpn layout.
This commit is contained in:
parent
bae3555f84
commit
c1a50110a9
@ -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
|
||||
# ---
|
||||
|
Loading…
Reference in New Issue
Block a user