mirror of
https://github.com/Nyr/openvpn-install.git
synced 2025-04-05 05:33:30 +03:00
Revoking cert removes ovpn
This commit is contained in:
parent
cc81838501
commit
c07a6db715
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ if [[ -e /etc/openvpn/server.conf ]]; then
|
|||
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
|
||||
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 "Certificate for client $CLIENT revoked!"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue