mirror of
https://github.com/Nyr/openvpn-install.git
synced 2025-04-05 05:33:30 +03:00
Merge 7dc2ef433d
into 6061a29028
This commit is contained in:
commit
a8f156270b
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,11 @@ if [[ -e /etc/openvpn/server.conf ]]; then
|
|||
read -p "Client name: " -e CLIENT
|
||||
cd /etc/openvpn/easy-rsa/
|
||||
./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…
Add table
Reference in a new issue