From fcffd650eedf2dd0b1a056a306489979b6ebc1ca Mon Sep 17 00:00:00 2001 From: Luiz Angelo Daros de Luca Date: Wed, 3 Oct 2018 18:09:43 -0300 Subject: [PATCH] respect EASYRSA_SSL_CONF during init-pki Signed-off-by: Luiz Angelo Daros de Luca --- easyrsa3/easyrsa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 7fa85fa..c4fde5c 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -440,9 +440,9 @@ and initialize a fresh PKI here." mkdir -p "$EASYRSA_PKI/$i" || die "Failed to create PKI file structure (permissions?)" done - if [ ! -f "$EASYRSA_PKI/openssl-easyrsa.cnf" -a -f "$EASYRSA/openssl-easyrsa.cnf" ]; + if [ ! -f "$EASYRSA_SSL_CONF" -a -f "$EASYRSA/openssl-easyrsa.cnf" ]; then - cp "$EASYRSA/openssl-easyrsa.cnf" "$EASYRSA_PKI/openssl-easyrsa.cnf" + cp "$EASYRSA/openssl-easyrsa.cnf" "$EASYRSA_SSL_CONF" fi notice "\