parent
0a4aa69e9f
commit
4bf07e6ca0
1 changed files with 11 additions and 9 deletions
|
|
@ -1036,6 +1036,7 @@ function revokeClient () {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
until [[ "$CLIENT" =~ ^[a-zA-Z0-9_]+$ ]]; do
|
||||
echo ""
|
||||
echo "Select the existing client certificate you want to revoke"
|
||||
tail -n +2 /etc/openvpn/easy-rsa/pki/index.txt | grep "^V" | cut -d '=' -f 2 | nl -s ') '
|
||||
|
|
@ -1046,6 +1047,7 @@ function revokeClient () {
|
|||
fi
|
||||
|
||||
CLIENT=$(tail -n +2 /etc/openvpn/easy-rsa/pki/index.txt | grep "^V" | cut -d '=' -f 2 | sed -n "$CLIENTNUMBER"p)
|
||||
done
|
||||
cd /etc/openvpn/easy-rsa/
|
||||
./easyrsa --batch revoke "$CLIENT"
|
||||
EASYRSA_CRL_DAYS=3650 ./easyrsa gen-crl
|
||||
|
|
|
|||
Loading…
Reference in a new issue