1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-05 05:33:30 +03:00
This commit is contained in:
christianberkman 2018-06-04 12:19:38 +00:00 committed by GitHub
commit a8f156270b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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