Set Server Cert to 12775 All others to 1080 Days
This commit is contained in:
parent
865239125d
commit
bbf489f9ae
1 changed files with 5 additions and 2 deletions
|
|
@ -197,7 +197,7 @@ private-address: ::ffff:0:0/96' > /etc/unbound/openvpn.conf
|
||||||
|
|
||||||
function installQuestions () {
|
function installQuestions () {
|
||||||
echo "Welcome to the OpenVPN installer!"
|
echo "Welcome to the OpenVPN installer!"
|
||||||
echo "The git repository is available at: https://github.com/angristan/openvpn-install"
|
echo "The git repository is available at: https://github.com/psgoundar/openvpn-install"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "I need to ask you a few questions before starting the setup."
|
echo "I need to ask you a few questions before starting the setup."
|
||||||
|
|
@ -698,6 +698,9 @@ function installOpenVPN () {
|
||||||
|
|
||||||
./easyrsa build-server-full "$SERVER_NAME" nopass
|
./easyrsa build-server-full "$SERVER_NAME" nopass
|
||||||
EASYRSA_CRL_DAYS=3650 ./easyrsa gen-crl
|
EASYRSA_CRL_DAYS=3650 ./easyrsa gen-crl
|
||||||
|
#Replace Cert Lifetime back to 1080 Days leaving only the Server Cert as 12775 Days
|
||||||
|
sed -i 's/12775/1080/' vars
|
||||||
|
|
||||||
|
|
||||||
case $TLS_SIG in
|
case $TLS_SIG in
|
||||||
1)
|
1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue