mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-31 05:57:36 +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:
		| @@ -1143,10 +1143,6 @@ 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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 randomshell
					randomshell