Merge ce299a068b into 6061a29028
This commit is contained in:
commit
4ca23f92ea
@ -71,7 +71,12 @@ if [[ -e /etc/openvpn/server.conf ]]; then
|
||||
echo "Please, use one word only, no special characters."
|
||||
read -p "Client name: " -e CLIENT
|
||||
cd /etc/openvpn/easy-rsa/
|
||||
./easyrsa build-client-full $CLIENT nopass
|
||||
./easyrsa build-client-full $CLIENT nopass\
|
||||
# Ask to set a passphrase for the configuration file
|
||||
read -p "Do you want to set a passphrase for the configuration file? [y/N]: " -e -i N SETPASS
|
||||
if [[ "$SETPASS" = 'y' || "$SETPASS" = 'Y' ]]; then
|
||||
./easyrsa set-rsa-pass $CLIENT
|
||||
fi
|
||||
# Generates the custom client.ovpn
|
||||
newclient "$CLIENT"
|
||||
echo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user