mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-03-14 06:33:17 +01:00
revokeClient: Do not remove revoked client record from index.txt
Deleting a revoked (^R) client record from index.txt means that the client will not be listed in the Certificate Revocation List. This effectively "unrevokes" the client and allows the client to continue using the VPN. Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
dd9d0aa281
commit
686eee5d34
@ -1187,7 +1187,6 @@ function revokeClient() {
|
|||||||
rm -f "/root/$CLIENT.ovpn"
|
rm -f "/root/$CLIENT.ovpn"
|
||||||
sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt
|
sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt
|
||||||
cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk}
|
cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk}
|
||||||
sed -i -e '/^[R]/d' /etc/openvpn/easy-rsa/pki/index.txt
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Certificate for client $CLIENT revoked."
|
echo "Certificate for client $CLIENT revoked."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user