mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-21 16:29:04 +01:00
Delete old client references in easy-rsa PKI index (#873)
This commit is contained in:
parent
7d5c2d962d
commit
29deb4cfdf
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user