diff --git a/quickstart/docker/image/create-controller-config.sh b/quickstart/docker/image/create-controller-config.sh index f5c9af918..6e99737d1 100755 --- a/quickstart/docker/image/create-controller-config.sh +++ b/quickstart/docker/image/create-controller-config.sh @@ -143,9 +143,5 @@ web: options: { } - binding: edge-client options: { } - apis: - - binding: edge-management - options: { } - - binding: edge-client - options: { } + HereDocForEdgeConfiguration diff --git a/quickstart/docker/image/create-edge-router-config.sh b/quickstart/docker/image/create-edge-router-config.sh index 16b1e64ec..6ab147e10 100755 --- a/quickstart/docker/image/create-edge-router-config.sh +++ b/quickstart/docker/image/create-edge-router-config.sh @@ -3,10 +3,10 @@ cat > ${ZITI_HOME}/${ZITI_EDGE_ROUTER_HOSTNAME}.yaml < ${ZITI_HOME}/${ZITI_EDGE_ROUTER_HOSTNAME}.yaml < ${ZITI_HOME}/${ZITI_EDGE_ROUTER_HOSTNAME}.yaml < "${ZITI_HOME}/${ZITI_EDGE_ROUTER_HOSTNAME}.enrollment.log") echo "" sleep 1 - unused=$(ziti-router run "${ZITI_HOME}/${ZITI_EDGE_ROUTER_HOSTNAME}.yaml" > "${ZITI_HOME}/${ZITI_EDGE_ROUTER_HOSTNAME}.log" 2>&1 &) + unused=$(ziti-router run "${ZITI_HOME}/${ZITI_EDGE_ROUTER_HOSTNAME}.yaml" > "${ZITI_HOME}/ziti-edge-router-${ZITI_EDGE_ROUTER_HOSTNAME}.log" 2>&1 &) } function decideOperation { diff --git a/quickstart/local/pki-functions.sh b/quickstart/local/pki-functions.sh deleted file mode 100755 index c8a8bb8ed..000000000 --- a/quickstart/local/pki-functions.sh +++ /dev/null @@ -1,45 +0,0 @@ -function yaml2json() -{ - ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML.load(ARGF))' $* -} - -function printUsage() -{ - echo "Usage: $1 [cert to test] [ca pool to use]" -} - -function verifyCertAgainstPool() -{ - if [[ "" == "$1" ]] - then - printUsage "verifyCertAgainstPool" - return 1 - fi - - if [[ "" == "$2" ]] - then - printUsage "verifyCertAgainstPool" - return 1 - fi - - echo " Verifying that this certificate:" - echo " - $1" - echo " is valid for this ca pool:" - echo " - $2" - echo "" - openssl verify -partial_chain -CAfile "$2" "$1" - if [ $? -eq 0 ]; then - echo "" - echo "============ SUCCESS! ============" - else - echo "" - echo "============ FAILED TO VALIDATE ============" - fi -} - -function showIssuerAndSubjectForPEM() -{ - echo "Displaying Issuer and Subject for cert pool:" - echo " $1" - openssl crl2pkcs7 -nocrl -certfile $1 | openssl pkcs7 -print_certs -text -noout | grep -E "(Subject|Issuer)" -} diff --git a/quickstart/local/pki-functions.sh b/quickstart/local/pki-functions.sh new file mode 120000 index 000000000..6d7173816 --- /dev/null +++ b/quickstart/local/pki-functions.sh @@ -0,0 +1 @@ +../docker/image/pki-functions.sh \ No newline at end of file diff --git a/quickstart/local/restart-ziti.sh b/quickstart/local/restart-ziti.sh index 3d4ab4c83..f4cba1056 100755 --- a/quickstart/local/restart-ziti.sh +++ b/quickstart/local/restart-ziti.sh @@ -14,7 +14,7 @@ source ${curdir}/env.sh DIRNAME=$(dirname $0) [[ ${USE_DNSMASQ:-} -eq 1 ]] && source ${DIRNAME}/run-dns.sh -ziti-controller -v run "${ZITI_HOME}/controller.yaml" > "${ZITI_HOME}/ziti-controller.log" 2>&1 & +ziti-controller -v run "${ZITI_HOME}/controller.yaml" > "${ZITI_HOME}/ziti_edge-controller.log" 2>&1 & # sleep 2 # ziti-router run "${ZITI_HOME}/${ZITI_ROUTER_BR_NAME}.yaml" > "${ZITI_HOME}/ziti-${ZITI_ROUTER_BR_NAME}.log" 2>&1 & # sleep 1 diff --git a/quickstart/ziti-cli-functions.sh b/quickstart/ziti-cli-functions.sh index 97667c859..162be681a 100644 --- a/quickstart/ziti-cli-functions.sh +++ b/quickstart/ziti-cli-functions.sh @@ -57,8 +57,8 @@ function initializeController { echo -e "ziti-controller initialized. see $(BLUE ${ZITI_HOME}/controller-init.log) for details" } function startZitiController { - unused=$(ziti-controller run "${ZITI_HOME}/controller.yaml" > "${ZITI_HOME}/ziti-controller.log" 2>&1 &) - echo -e "ziti-controller started. log located at: $(BLUE ${ZITI_HOME}/ziti-controller.log)" + unused=$(ziti-controller run "${ZITI_HOME}/controller.yaml" > "${ZITI_HOME}/ziti-edge-controller.log" 2>&1 &) + echo -e "ziti-controller started. log located at: $(BLUE ${ZITI_HOME}/ziti-edge-controller.log)" } function stopZitiController { killall ziti-controller