mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-31 14:07:36 +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 | 	find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete | ||||||
| 	rm -f "/root/$CLIENT.ovpn" | 	rm -f "/root/$CLIENT.ovpn" | ||||||
| 	sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt | 	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 "" | ||||||
| 	echo "Certificate for client $CLIENT revoked." | 	echo "Certificate for client $CLIENT revoked." | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 fabiogiorgione
					fabiogiorgione