From 4080585ab58f5b59eec8a79b8896e0013fe0059b Mon Sep 17 00:00:00 2001 From: Stanislas Date: Tue, 20 Aug 2019 21:02:05 +0200 Subject: [PATCH] Workaround to remove unharmful easy-rsa error (#469) Until easy-rsa 3.0.7. https://github.com/OpenVPN/easy-rsa/issues/261 Fix #454 --- openvpn-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index dfaf122..a419bdc 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -656,6 +656,11 @@ function installOpenVPN () { SERVER_CN="cn_$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)" SERVER_NAME="server_$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)" echo "set_var EASYRSA_REQ_CN $SERVER_CN" >> vars + + # Workaround to remove unharmful error until easy-rsa 3.0.7 + # https://github.com/OpenVPN/easy-rsa/issues/261 + sed -i 's/^RANDFILE/#RANDFILE/g' pki/openssl-easyrsa.cnf + # Create the PKI, set up the CA, the DH params and the server certificate ./easyrsa init-pki ./easyrsa --batch build-ca nopass