Skip to content

Commit

Permalink
Add function to update certificate authority store on init
Browse files Browse the repository at this point in the history
When adding custom CA certificates the system and Java stores need to be
updated. This patch adds a function for that that is always called
during init.
  • Loading branch information
mtneug committed May 15, 2024
1 parent dbe4fc7 commit d570915
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rootfs/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,19 @@ opencast_file_env() {
file_env ORG_OPENCASTPROJECT_DB_JDBC_PASS
}

opencast_main_update_ca() {
echo "Run opencast_main_update_ca"

update-ca-certificates
trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$JAVA_HOME/lib/security/cacerts"
}

opencast_main_init() {
echo "Run opencast_main_init"

opencast_file_env
opencast_tz_set
opencast_main_update_ca
opencast_whisper_init

if opencast_helper_customconfig; then
Expand Down

0 comments on commit d570915

Please sign in to comment.