Skip to content

Commit 6bee5e9

Browse files
cdabellakylemanna
authored andcommitted
bin/ovpn_initpki: Touch vars file before init-pki
EasyRSA 3.0.7 introduces a check for the existence of vars in the vars_setup() function. '$ easyrsa init-pki' fails without first creating the file. See https://github.com/OpenVPN/easy-rsa/commit/ abaa2f57b48e218ac58ee6dc793f178aada31f82#diff-231cb43897d7aa2a98df da5720c2b40f for the exact change.
1 parent d53043e commit 6bee5e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/ovpn_initpki

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ source "$OPENVPN/ovpn_env.sh"
1515
# Specify "nopass" as arg[2] to make the CA insecure (not recommended!)
1616
nopass=$1
1717

18+
# EasyRSA 3.0.7 introduced checks for $EASYRSA_VARS_FILE existence
19+
# in the init-pki script
20+
touch $EASYRSA_VARS_FILE
21+
1822
# Provides a sufficient warning before erasing pre-existing files
1923
easyrsa init-pki
2024

0 commit comments

Comments
 (0)