Skip to content

Commit

Permalink
Fix keyring
Browse files Browse the repository at this point in the history
Strip safkeyring:// and safkeyring://// when reading keyring location so that gskit can read the keyring.

Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs authored Apr 19, 2022
1 parent 5b4ff76 commit 6ef6c09
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bin/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,17 @@ fi

# Keystore settings are used for both https server and Caching Service
export "${HTTPS_PREFIX}label=${KEY_ALIAS}"
if [ "${KEYSTORE_TYPE}" = "JCERACFKS" ]; then
export "${HTTPS_PREFIX}keyring=${KEYRING_OWNER}/${KEYRING_NAME}"

if [ "${ZWE_zowe_certificate_keystore_type}" = "JCERACFKS" ]; then
export "${HTTPS_PREFIX}keyring=${ZWE_zowe_certificate_keystore_file}"
case "${ZWE_zowe_certificate_keystore_file}" in
safkeyring:////*)
export ZWED_node_mediationLayer_enabled=$(echo $ZWE_zowe_certificate_keystore_file | cut -c 16-)
;;
safkeyring://*)
export ZWED_node_mediationLayer_enabled=$(echo $ZWE_zowe_certificate_keystore_file | cut -c 14-)
;;
esac
else
export "${HTTPS_PREFIX}keyring=${KEYSTORE}"
export "${HTTPS_PREFIX}password=${KEYSTORE_PASSWORD}"
Expand Down

0 comments on commit 6ef6c09

Please sign in to comment.