Skip to content

Commit

Permalink
Merge pull request #234 from zowe/bugfix/v2/keyring-root-ca
Browse files Browse the repository at this point in the history
Update convert-env.sh to fix keyring root ca
  • Loading branch information
1000TurquoisePogs authored Jul 12, 2022
2 parents cc5ff74 + 18df72b commit de183f6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bin/utils/convert-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,12 @@ if [ -z "$ZWED_node_https_certificateAuthorities" ]
then
if [ "$KEYSTORE_TYPE" = "JCERACFKS" ]
then
if [ -z "$LOCAL_CA" ]
then
LOCAL_CA=localca
fi
#, at end turns it into an array
if [ -n "$EXTERNAL_ROOT_CA" ]
then
export ZWED_node_https_certificateAuthorities="${TRUSTSTORE}&${LOCAL_CA}","${TRUSTSTORE}&${EXTERNAL_ROOT_CA}"
export ZWED_node_https_certificateAuthorities="${ZWE_zowe_certificate_pem_certificateAuthorities}","${TRUSTSTORE}&${EXTERNAL_ROOT_CA}"
else
export ZWED_node_https_certificateAuthorities="${TRUSTSTORE}&${LOCAL_CA}",
export ZWED_node_https_certificateAuthorities="${ZWE_zowe_certificate_pem_certificateAuthorities}",
fi
elif [ -n "$KEYSTORE_CERTIFICATE_AUTHORITY" ]
then
Expand Down

0 comments on commit de183f6

Please sign in to comment.