mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-30 21:47:37 +01:00 
			
		
		
		
	Delete old client references in easy-rsa PKI index (#873)
This commit is contained in:
		| @@ -1186,6 +1186,8 @@ function revokeClient() { | ||||
| 	find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete | ||||
| 	rm -f "/root/$CLIENT.ovpn" | ||||
| 	sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt | ||||
| 	cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk} | ||||
| 	sed -i -e '/^[R]/d' /etc/openvpn/easy-rsa/pki/index.txt | ||||
|  | ||||
| 	echo "" | ||||
| 	echo "Certificate for client $CLIENT revoked." | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 fabiogiorgione
					fabiogiorgione