not changing directory

This commit is contained in:
John Lancaster
2025-12-29 23:48:48 -06:00
parent b0f1ae358b
commit 8f60dad7f6

View File

@@ -160,14 +160,13 @@ confirm_inputs "CERT_LOCATION" "KEY_LOCATION"
if [ ! -f "$CERT_LOCATION" ] || [ ! -f "$KEY_LOCATION" ]; then
(umask 077; mkdir -p "${CERT_DIR}")
cd "${CERT_DIR}"
step ca root root_ca.crt
hostname=$(hostname -s) step ca certificate "$hostname" cert.pem key.pem \
step ca root "${CERT_DIR}/root_ca.crt"
hostname=$(hostname -s) step ca certificate "$hostname" \
"${CERT_DIR}/cert.pem" "${CERT_DIR}/key.pem" \
--san "$hostname" \
--san "$hostname.john-stream.com" \
--san "$IP_ADDRESS" \
--provisioner admin
exit 1
fi
# 3. Configure