1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-04 21:23:31 +03:00

fix for revoke client

This commit is contained in:
EugeneBogush 2024-11-28 17:01:07 +02:00 committed by GitHub
parent c15f4dd357
commit 73b91444cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -490,6 +490,9 @@ else
./easyrsa --batch revoke "$client"
./easyrsa --batch --days=3650 gen-crl
rm -f /etc/openvpn/server/crl.pem
rm -f /etc/openvpn/server/easy-rsa/pki/reqs/"$client".req
rm -f /etc/openvpn/server/easy-rsa/pki/private/"$client".key
rm -f /etc/openvpn/server/easy-rsa/pki/issued/"$client".crt
cp /etc/openvpn/server/easy-rsa/pki/crl.pem /etc/openvpn/server/crl.pem
# CRL is read with each client connection, when OpenVPN is dropped to nobody
chown nobody:"$group_name" /etc/openvpn/server/crl.pem