Remove revoked client from ifconfig-pool-persist

This commit is contained in:
angristan 2018-09-24 15:24:31 +02:00
parent 0f117352c7
commit e4a9851b4f
1 changed files with 1 additions and 0 deletions

View File

@ -1040,6 +1040,7 @@ function revokeClient () {
chmod 644 /etc/openvpn/crl.pem
find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
rm -f "/root/$CLIENT.ovpn"
sed -i "s|^$CLIENT,.*||" /etc/openvpn/ipp.txt
echo ""
echo "Certificate for client $CLIENT revoked."