Skip to content

Commit

Permalink
Merge pull request #450 from zowe/1000TurquoisePogs-patch-2
Browse files Browse the repository at this point in the history
Fix keyring
  • Loading branch information
1000TurquoisePogs authored Apr 20, 2022
2 parents f257f1d + 81176a0 commit f397363
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions bin/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,19 @@ 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:////*)
trimmed=$(echo $ZWE_zowe_certificate_keystore_file | cut -c 16-)
export "${HTTPS_PREFIX}keyring=$trimmed"
;;
safkeyring://*)
trimmed=$(echo $ZWE_zowe_certificate_keystore_file | cut -c 14-)
export "${HTTPS_PREFIX}keyring=$trimmed"
;;
esac
else
export "${HTTPS_PREFIX}keyring=${KEYSTORE}"
export "${HTTPS_PREFIX}password=${KEYSTORE_PASSWORD}"
Expand Down

0 comments on commit f397363

Please sign in to comment.