From 10ae840c3105c46fcef49d85fe76473fdae39d88 Mon Sep 17 00:00:00 2001 From: lawtancool <26829131+lawtancool@users.noreply.github.com> Date: Fri, 21 Jun 2019 20:53:24 -0700 Subject: [PATCH] fix easyrsa path --- bin/ovpn_initpki | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/ovpn_initpki b/bin/ovpn_initpki index fb0de4b..ed0d89f 100755 --- a/bin/ovpn_initpki +++ b/bin/ovpn_initpki @@ -20,14 +20,14 @@ wget https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.4/EasyRSA-3.0.4. tar xvf EasyRSA-3.0.4.tgz # Provides a sufficient warning before erasing pre-existing files -~/EasyRSA-3.0.4/easyrsa init-pki +EasyRSA-3.0.4/easyrsa init-pki # CA always has a password for protection in event server is compromised. The # password is only needed to sign client/server certificates. No password is # needed for normal OpenVPN operation. -~/EasyRSA-3.0.4/easyrsa build-ca $nopass +EasyRSA-3.0.4/easyrsa build-ca $nopass -~/EasyRSA-3.0.4/easyrsa gen-dh +EasyRSA-3.0.4/easyrsa gen-dh openvpn --genkey --secret $EASYRSA_PKI/ta.key # Was nice to autoset, but probably a bad idea in practice, users should @@ -41,10 +41,10 @@ openvpn --genkey --secret $EASYRSA_PKI/ta.key #fi # For a server key with a password, manually init; this is autopilot -~/EasyRSA-3.0.4/easyrsa build-server-full "$OVPN_CN" nopass +EasyRSA-3.0.4/easyrsa build-server-full "$OVPN_CN" nopass # Generate the CRL for client/server certificates revocation. -~/EasyRSA-3.0.4/easyrsa gen-crl +EasyRSA-3.0.4/easyrsa gen-crl # Remove EasyRSA files when we're done rm -r ~/EasyRSA-3.0.4/