Merge e82eb47023
into 2d0eca1a1d
This commit is contained in:
commit
eb2c782075
1 changed files with 11 additions and 0 deletions
|
@ -4,6 +4,15 @@
|
|||
# Secure OpenVPN server installer for Debian, Ubuntu, CentOS, Amazon Linux 2, Fedora, Oracle Linux 8, Arch Linux, Rocky Linux and AlmaLinux.
|
||||
# https://github.com/angristan/openvpn-install
|
||||
|
||||
# Certificate expiration
|
||||
|
||||
# Default settings
|
||||
# CA_EXPIRE=3650
|
||||
# CERT_EXPIRE=825
|
||||
|
||||
CA_EXPIRE=3650
|
||||
CERT_EXPIRE=3650
|
||||
|
||||
function isRoot() {
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
return 1
|
||||
|
@ -730,6 +739,8 @@ function installOpenVPN() {
|
|||
echo "$SERVER_NAME" >SERVER_NAME_GENERATED
|
||||
|
||||
echo "set_var EASYRSA_REQ_CN $SERVER_CN" >>vars
|
||||
echo "set_var EASYRSA_CA_EXPIRE $CA_EXPIRE" >>vars
|
||||
echo "set_var EASYRSA_CERT_EXPIRE $CERT_EXPIRE" >>vars
|
||||
|
||||
# Create the PKI, set up the CA, the DH params and the server certificate
|
||||
./easyrsa init-pki
|
||||
|
|
Loading…
Reference in a new issue