Skip to content

Commit

Permalink
Merge pull request #1254 from openziti/fix-quickstart-for-routers
Browse files Browse the repository at this point in the history
cat other intermediate cert into ca bundle
  • Loading branch information
dovholuknf authored Aug 22, 2023
2 parents 797a9d0 + 98091d1 commit e9497fb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions quickstart/docker/image/ziti-cli-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,15 @@ function createControllerConfig {
file_path="${ZITI_HOME}"
if [[ "${ZITI_HOME-}" == "" ]]; then file_path="."; fi

cat "${ZITI_PKI_CTRL_SERVER_CERT}" >"${ZITI_PKI_CTRL_CA}"
cat "${ZITI_PKI_SIGNER_CERT}" >>"${ZITI_PKI_CTRL_CA}"
echo "adding controller root CA to ca bundle: $ZITI_PKI/$ZITI_PKI_CTRL_ROOTCA_NAME/certs/$ZITI_PKI_CTRL_ROOTCA_NAME.cert"
cat "$ZITI_PKI/$ZITI_PKI_CTRL_ROOTCA_NAME/certs/$ZITI_PKI_CTRL_ROOTCA_NAME.cert" > "${ZITI_PKI_CTRL_CA}"

echo "adding signing root CA to ca bundle: $ZITI_PKI/$ZITI_PKI_SIGNER_ROOTCA_NAME/certs/$ZITI_PKI_SIGNER_ROOTCA_NAME.cert"
cat "$ZITI_PKI/$ZITI_PKI_SIGNER_ROOTCA_NAME/certs/$ZITI_PKI_SIGNER_ROOTCA_NAME.cert" >>"${ZITI_PKI_CTRL_CA}" >> "${ZITI_PKI_CTRL_CA}"

echo "adding secondary signing intermediate into ca bundle: $ZITI_PKI/$ZITI_PKI_SIGNER_ROOTCA_NAME/certs/${ZITI_PKI_SIGNER_INTERMEDIATE_NAME}_spurious_intermediate.cert"
cat "$ZITI_PKI/$ZITI_PKI_SIGNER_ROOTCA_NAME/certs/${ZITI_PKI_SIGNER_INTERMEDIATE_NAME}_spurious_intermediate.cert" >> "${ZITI_PKI_CTRL_CA}"

echo -e "wrote CA file to: $(BLUE "${ZITI_PKI_CTRL_CA}")"

output_file="${file_path}/${controller_name}.yaml"
Expand Down

0 comments on commit e9497fb

Please sign in to comment.