diff --git a/dockerfiles/che/entrypoint.sh b/dockerfiles/che/entrypoint.sh index 0416d24851f..686c19480dc 100755 --- a/dockerfiles/che/entrypoint.sh +++ b/dockerfiles/che/entrypoint.sh @@ -322,10 +322,15 @@ add_che_cert_to_truststore() { fi } -add_public_cert_to_truststore() { +add_public_certs_to_truststore() { JAVA_TRUST_STORE=/home/user/cacerts + DEFAULT_JAVA_TRUST_STORE=${JAVA_HOME}/lib/security/cacerts DEFAULT_JAVA_TRUST_STOREPASS="changeit" + if [ ! -f "$JAVA_TRUST_STORE" ]; then + cp "$DEFAULT_JAVA_TRUST_STORE" "$JAVA_TRUST_STORE" + fi + chmod 644 "$JAVA_TRUST_STORE" CUSTOM_PUBLIC_CERTIFICATES="/public-certs" @@ -439,7 +444,7 @@ init init_global_variables set_environment_variables add_che_cert_to_truststore -add_public_cert_to_truststore +add_public_certs_to_truststore # run che start_che_server &