Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Che server entrypoint script for case of commonly trusted certificate #18601

Merged
merged 1 commit into from
Dec 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions dockerfiles/che/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
mmorhun marked this conversation as resolved.
Show resolved Hide resolved
cp "$DEFAULT_JAVA_TRUST_STORE" "$JAVA_TRUST_STORE"
fi

chmod 644 "$JAVA_TRUST_STORE"

CUSTOM_PUBLIC_CERTIFICATES="/public-certs"
Expand Down Expand Up @@ -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 &
Expand Down