Skip to content

Commit

Permalink
Update openvpn-install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
simplecode678 committed Dec 12, 2017
1 parent 68dcea7 commit 9c35bcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openvpn-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ if [[ -e /etc/openvpn/server.conf ]]; then
echo "Tell me a name for the client cert"
echo "Please, use one word only, no special characters"
read -p "Client name: " -e -i client CLIENT
echo "For how many days do you want this client cert to be valid?"
read -p "Certificate validity (days): " -e -i 30 CERT_VALIDITY
cd /etc/openvpn/easy-rsa/
export EASYRSA_CERT_EXPIRE=$CERT_VALIDITY
./easyrsa build-client-full $CLIENT nopass
# Generates the custom client.ovpn
newclient "$CLIENT"
Expand Down

1 comment on commit 9c35bcf

@simplecode678
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds option to change the expiry date of issued certificate.

Please sign in to comment.