diff --git a/api-catalog-package/src/main/resources/bin/start.sh b/api-catalog-package/src/main/resources/bin/start.sh index e886722106..55469fb4c2 100755 --- a/api-catalog-package/src/main/resources/bin/start.sh +++ b/api-catalog-package/src/main/resources/bin/start.sh @@ -174,6 +174,17 @@ if [ $JAVA_VERSION -ge 61 ]; then --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED" + + if [ "${keystore_type}" = "JCERACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjce://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjce://_) + elif [ "${keystore_type}" = "JCECCARACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + elif [ "${keystore_type}" = "JCEHYBRIDRACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + fi fi # NOTE: these are moved from below diff --git a/caching-service-package/src/main/resources/bin/start.sh b/caching-service-package/src/main/resources/bin/start.sh index 68affacecb..3764abfecb 100755 --- a/caching-service-package/src/main/resources/bin/start.sh +++ b/caching-service-package/src/main/resources/bin/start.sh @@ -160,6 +160,17 @@ if [ $JAVA_VERSION -ge 61 ]; then --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED" + + if [ "${keystore_type}" = "JCERACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjce://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjce://_) + elif [ "${keystore_type}" = "JCECCARACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + elif [ "${keystore_type}" = "JCEHYBRIDRACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + fi fi CACHING_CODE=CS diff --git a/cloud-gateway-package/src/main/resources/bin/start.sh b/cloud-gateway-package/src/main/resources/bin/start.sh index 2832904c5c..502b3e3b43 100755 --- a/cloud-gateway-package/src/main/resources/bin/start.sh +++ b/cloud-gateway-package/src/main/resources/bin/start.sh @@ -120,6 +120,17 @@ if [ $JAVA_VERSION -ge 61 ]; then --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED" + + if [ "${keystore_type}" = "JCERACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjce://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjce://_) + elif [ "${keystore_type}" = "JCECCARACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + elif [ "${keystore_type}" = "JCEHYBRIDRACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + fi fi CLOUD_GATEWAY_CODE=CG diff --git a/discovery-package/src/main/resources/bin/start.sh b/discovery-package/src/main/resources/bin/start.sh index 5e8f4a247d..6a0fbfa7f8 100755 --- a/discovery-package/src/main/resources/bin/start.sh +++ b/discovery-package/src/main/resources/bin/start.sh @@ -169,6 +169,17 @@ if [ $JAVA_VERSION -ge 61 ]; then --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED" + + if [ "${keystore_type}" = "JCERACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjce://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjce://_) + elif [ "${keystore_type}" = "JCECCARACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + elif [ "${keystore_type}" = "JCEHYBRIDRACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + fi fi DISCOVERY_CODE=AD diff --git a/gateway-package/src/main/resources/bin/start.sh b/gateway-package/src/main/resources/bin/start.sh index 99f324362c..dc50ab5245 100755 --- a/gateway-package/src/main/resources/bin/start.sh +++ b/gateway-package/src/main/resources/bin/start.sh @@ -238,6 +238,17 @@ if [ $JAVA_VERSION -ge 61 ]; then --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED" + + if [ "${keystore_type}" = "JCERACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjce://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjce://_) + elif [ "${keystore_type}" = "JCECCARACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + elif [ "${keystore_type}" = "JCEHYBRIDRACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + fi fi GATEWAY_CODE=AG diff --git a/metrics-service-package/src/main/resources/bin/start.sh b/metrics-service-package/src/main/resources/bin/start.sh index df3f85773d..220dd4701f 100755 --- a/metrics-service-package/src/main/resources/bin/start.sh +++ b/metrics-service-package/src/main/resources/bin/start.sh @@ -122,6 +122,17 @@ if [ $JAVA_VERSION -ge 61 ]; then --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/javax.net.ssl=ALL-UNNAMED" + + if [ "${keystore_type}" = "JCERACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjce://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjce://_) + elif [ "${keystore_type}" = "JCECCARACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcecca://_) + elif [ "${keystore_type}" = "JCEHYBRIDRACFKS" ]; then + keystore_location=$(echo "${keystore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + truststore_location=$(echo "${truststore_location}" | sed s_safkeyring://_safkeyringjcehybrid://_) + fi fi METRICS_CODE=MS