From de9019a9824b8527bd12b3ce72f0ad650319ce86 Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Thu, 2 Mar 2023 10:12:03 -0500 Subject: [PATCH] Update index.sh Signed-off-by: 1000TurquoisePogs --- bin/commands/init/certificate/index.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/commands/init/certificate/index.sh b/bin/commands/init/certificate/index.sh index b45cc64c56..5bf4920353 100644 --- a/bin/commands/init/certificate/index.sh +++ b/bin/commands/init/certificate/index.sh @@ -120,6 +120,14 @@ if [ -n "${zosmf_host}" -a -n "${zosmf_port}" ]; then create_zosmf_trust=$(read_yaml "${ZWE_CLI_PARAMETER_CONFIG}" ".zowe.setup.certificate.createZosmfTrust") if [ "${create_zosmf_trust}" = "true" ]; then do_trust_zosmf="--trust-zosmf" + # backward compat for if missing. + elif [ -z "${create_zosmf_trust}" ]; then + if [ "${verify_certificates}" = "STRICT" -o "${verify_certificates}" = "NONSTRICT" ]; then + do_trust_zosmf="--trust-zosmf" + else + zosmf_host= + zosmf_port= + fi else zosmf_host= zosmf_port=