Remove not necessary code
The deletion of issued files is handled by `easy-rsa`.
See function `move_revoked()` f0129cfe62/easyrsa3/easyrsa (L1050)
This commit is contained in:
parent
e123635e7c
commit
d44f879849
1 changed files with 1 additions and 4 deletions
|
|
@ -1111,13 +1111,10 @@ function revokeClient () {
|
|||
cd /etc/openvpn/easy-rsa/ || return
|
||||
./easyrsa --batch revoke "$CLIENT"
|
||||
EASYRSA_CRL_DAYS=3650 ./easyrsa gen-crl
|
||||
# Cleanup
|
||||
rm -f "pki/reqs/$CLIENT.req"
|
||||
rm -f "pki/private/$CLIENT.key"
|
||||
rm -f "pki/issued/$CLIENT.crt"
|
||||
rm -f /etc/openvpn/crl.pem
|
||||
cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/crl.pem
|
||||
chmod 644 /etc/openvpn/crl.pem
|
||||
# Cleanup
|
||||
find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
|
||||
rm -f "/root/$CLIENT.ovpn"
|
||||
sed -i "s|^$CLIENT,.*||" /etc/openvpn/ipp.txt
|
||||
|
|
|
|||
Loading…
Reference in a new issue