From c07a6db715b322eaf886fe1acbd68ec3f830fe65 Mon Sep 17 00:00:00 2001 From: cezar97 Date: Wed, 4 Jul 2018 02:21:19 +0300 Subject: [PATCH] Revoking cert removes ovpn --- openvpn-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index 403e0fd..7a73a14 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -109,6 +109,8 @@ if [[ -e /etc/openvpn/server.conf ]]; then cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/crl.pem # CRL is read with each client connection, when OpenVPN is dropped to nobody chown nobody:$GROUPNAME /etc/openvpn/crl.pem + rm -rf $(find /home -maxdepth 2 | grep $CLIENT.ovpn) 2>/dev/null + rm -rf /root/$CLIENT.ovpn 2>/dev/null echo echo "Certificate for client $CLIENT revoked!" else