Compare commits

..

5 Commits

2 changed files with 3 additions and 3 deletions

View File

@@ -306,11 +306,11 @@ if $EASYRSA_LAYOUT_NEW ; then
_cn="$(openssl x509 -noout -text -in $_cert | grep Subject: | grep -oE "CN\s*=\s*[^,]+" | awk '{print$3}')" _cn="$(openssl x509 -noout -text -in $_cert | grep Subject: | grep -oE "CN\s*=\s*[^,]+" | awk '{print$3}')"
fi fi
if ! containsElement "$_cn" "${all_cn_arr[@]}" ; then if ! containsElement "$_serial" "${all_cn_arr[@]}" ; then
all_arr+=("${_serial}:$(trim $_cn)") all_arr+=("${_serial}:$(trim $_cn)")
all_cn_arr+=("$(trim $_cn)") all_cn_arr+=("$(trim $_cn)")
fi fi
if ! containsElement "$_cn" "${revoked_cn_arr[@]}" ; then if ! containsElement "$_serial" "${revoked_cn_arr[@]}" ; then
active_arr+=("${_serial}:$(trim $_cn)") active_arr+=("${_serial}:$(trim $_cn)")
fi fi

View File

@@ -3,7 +3,7 @@
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
conf_file=${script_dir}/conf/install_openvpn.conf conf_file=${script_dir}/conf/install_openvpn.conf
_needed_debian_packages="openvpn easy-rsa" _needed_debian_packages="openvpn easy-rsa zip"
# - Used if system does NOT support systemd # - Used if system does NOT support systemd
# - # -