commit 93f4291e366a029af95641220db527f8af3a669f
parent 1082572e26f1f0e058c9f99b2a29114f5575aade
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Sat, 12 Feb 2022 20:07:20 +0100
fix VAULT_TLS_BASE_PATH in vault-tls.sh
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vault-tls.sh b/vault-tls.sh
@@ -31,7 +31,7 @@ then
fi
# Set working dir
-VAULT_TLS_BASE_PATH="${CONSUL_TLS_BASE_PATH:-./tls/vault/}"
+VAULT_TLS_BASE_PATH="${VAULT_TLS_BASE_PATH:-./tls/vault/}"
mkdir -p "$VAULT_TLS_BASE_PATH"
cd "$VAULT_TLS_BASE_PATH"
@@ -49,4 +49,4 @@ basicConstraints = critical, CA:true, pathlen:1
keyUsage = critical, digitalSignature, cRLSign, keyCertSign
"
openssl req -config <(echo "$CA_CONFIG") -new -newkey rsa:2048 -nodes -days 730 \
- -subj "/CN=Snake Root CA" -x509 -extensions ext -keyout "./ca/vault_ca.key" -out "./ca/vault_ca.pem"
-\ No newline at end of file
+ -subj "/CN=Snake Root CA" -x509 -extensions ext -keyout "./ca/vault_ca.key" -out "./ca/vault_ca.pem"