Skip to content

Commit d980060

Browse files
authored
Read self signed certificate from file instead of env variable (#815)
1 parent e5e1bfe commit d980060

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build/dockerfiles/entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,14 @@ set_truststore_system_variables() {
323323
}
324324

325325
add_che_cert_to_truststore() {
326+
# Deprecated, CHE_SELF__SIGNED__CERT environment variable is not used after 7.105.0
326327
if [ "${CHE_SELF__SIGNED__CERT}" != "" ]; then
327328
add_cert_to_truststore "${CHE_SELF__SIGNED__CERT}" "HOSTDOMAIN"
328329
fi
330+
CERT_PATH="/self-signed-cert/ca.crt"
331+
if [ -e $CERT_PATH ]; then
332+
add_cert_to_truststore "$(cat $CERT_PATH)" "HOSTDOMAIN"
333+
fi
329334
}
330335

331336
add_public_certs_to_truststore() {

0 commit comments

Comments
 (0)