mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-24 05:56:08 +03:00
Revoking cert removes ovpn
This commit is contained in:
parent
cc81838501
commit
c07a6db715
@ -109,6 +109,8 @@ if [[ -e /etc/openvpn/server.conf ]]; then
|
|||||||
cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/crl.pem
|
cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/crl.pem
|
||||||
# CRL is read with each client connection, when OpenVPN is dropped to nobody
|
# CRL is read with each client connection, when OpenVPN is dropped to nobody
|
||||||
chown nobody:$GROUPNAME /etc/openvpn/crl.pem
|
chown nobody:$GROUPNAME /etc/openvpn/crl.pem
|
||||||
|
rm -rf $(find /home -maxdepth 2 | grep $CLIENT.ovpn) 2>/dev/null
|
||||||
|
rm -rf /root/$CLIENT.ovpn 2>/dev/null
|
||||||
echo
|
echo
|
||||||
echo "Certificate for client $CLIENT revoked!"
|
echo "Certificate for client $CLIENT revoked!"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user