From b0f1ae358b43ba064e0266236534ef3434d804ed Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 29 Dec 2025 23:45:42 -0600 Subject: [PATCH] wizard now bootstrapping cert if it doesn't exist --- scripts/setup_wizard.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/setup_wizard.sh b/scripts/setup_wizard.sh index 1c55361..a87fcbf 100755 --- a/scripts/setup_wizard.sh +++ b/scripts/setup_wizard.sh @@ -159,7 +159,14 @@ export KEY_LOCATION=$(readlink -f $KEY_LOCATION) confirm_inputs "CERT_LOCATION" "KEY_LOCATION" if [ ! -f "$CERT_LOCATION" ] || [ ! -f "$KEY_LOCATION" ]; then - log_error "Certificate or key file does not exist at specified locations." + (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 \ + --san "$hostname" \ + --san "$hostname.john-stream.com" \ + --san "$IP_ADDRESS" \ + --provisioner admin exit 1 fi