1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-05 05:33:30 +03:00

Remove nopass option for extra security

It is better always to have one extra security level, if someone steal the .ovpn file (like senator's notebook stealled from US Senat for example). So let's create private key passwords by default option.
This commit is contained in:
ClassOdUa 2021-08-06 19:57:58 +03:00 committed by GitHub
parent 4f737ac2f8
commit 2fa276fb42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -454,7 +454,7 @@ else
client=$(sed 's/[^0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-]/_/g' <<< "$unsanitized_client")
done
cd /etc/openvpn/server/easy-rsa/
EASYRSA_CERT_EXPIRE=3650 ./easyrsa build-client-full "$client" nopass
EASYRSA_CERT_EXPIRE=3650 ./easyrsa build-client-full "$client"
# Generates the custom client.ovpn
new_client
echo