mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-02-05 21:21:34 +01:00
add random password suggestion
This commit is contained in:
parent
8783719459
commit
3bfd4a1ff8
@ -1089,7 +1089,10 @@ function newClient() {
|
|||||||
./easyrsa build-client-full "$CLIENT" nopass
|
./easyrsa build-client-full "$CLIENT" nopass
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
echo "⚠️ You will be asked for the client password below ⚠️"
|
echo -e "\n\n⚠️ You will be asked for the client password below ⚠️"
|
||||||
|
echo "this is a random password generated"
|
||||||
|
echo `openssl rand -base64 $(shuf -i13-17 -n1) || tr -dc A-Za-z0-9 </dev/urandom | head -c $(shuf -i13-17 -n1)`
|
||||||
|
echo "and can use it"
|
||||||
./easyrsa build-client-full "$CLIENT"
|
./easyrsa build-client-full "$CLIENT"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user