diff --git a/openvpn-install.sh b/openvpn-install.sh index c654647..f2f4250 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1186,6 +1186,8 @@ function revokeClient() { find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete rm -f "/root/$CLIENT.ovpn" sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt + cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk} + sed -i -e '/^[R]/d' /etc/openvpn/easy-rsa/pki/index.txt echo "" echo "Certificate for client $CLIENT revoked."