mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-24 01:39:02 +01:00
refactor(revoke client): remove uneeded cleanup (#607)
The deletion of issued files is handled by easy-rsa.
See function move_revoked() f0129cfe62/easyrsa3/easyrsa (L1050)
This commit is contained in:
parent
fe0b995bdf
commit
159ab9af6e
@ -1143,10 +1143,6 @@ function revokeClient () {
|
|||||||
cd /etc/openvpn/easy-rsa/ || return
|
cd /etc/openvpn/easy-rsa/ || return
|
||||||
./easyrsa --batch revoke "$CLIENT"
|
./easyrsa --batch revoke "$CLIENT"
|
||||||
EASYRSA_CRL_DAYS=3650 ./easyrsa gen-crl
|
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
|
rm -f /etc/openvpn/crl.pem
|
||||||
cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/crl.pem
|
cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/crl.pem
|
||||||
chmod 644 /etc/openvpn/crl.pem
|
chmod 644 /etc/openvpn/crl.pem
|
||||||
|
Loading…
Reference in New Issue
Block a user