fix EASYRSA_SSL_CONF

This commit is contained in:
lawtancool 2019-06-21 21:37:35 -07:00 committed by GitHub
parent a0fc7f8288
commit 971dbb4bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,6 @@ fi
set -e
source "$OPENVPN/ovpn_env.sh"
export EASYRSA_SSL_CONF="/usr/share/easy-rsa/openssl-1.0.0.cnf"
# Specify "nopass" as arg[2] to make the CA insecure (not recommended!)
nopass=$1
@ -20,6 +19,8 @@ nopass=$1
wget https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.4/EasyRSA-3.0.4.tgz
tar xvf EasyRSA-3.0.4.tgz
export EASYRSA_SSL_CONF="EasyRSA-3.0.4/openssl-easyrsa.cnf"
# Provides a sufficient warning before erasing pre-existing files
EasyRSA-3.0.4/easyrsa init-pki