mirror of
https://github.com/namibia/openvpn-install.git
synced 2024-12-22 06:48:55 +00: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