Skip to content

Commit

Permalink
import cacert for RD
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouly committed Feb 24, 2025
1 parent fdf613b commit 060e2c7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions decisioncenter/script/generateRDFiles.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,15 @@ then
cp /config/OdmOidcProvidersRD.json /config/apps/decisioncenter.war/assets/
fi
cp /config/security/truststore.jks /config/apps/decisioncenter.war/assets/

DEFAULT_TRUSTSTORE_PASSWORD=changeme
if [ -f "/shared/tls/truststore/jks/trusts.jks" ]
then
DEFAULT_TRUSTSTORE_PASSWORD=changeit
fi
if [ -n "$TRUSTSTORE_PASSWORD" ] || [ -f /config/security/volume/truststore_password ]
then
DEFAULT_TRUSTSTORE_PASSWORD=$TRUSTSTORE_PASSWORD
fi

keytool -importkeystore -srckeystore $JAVA_HOME/lib/security/cacerts -destkeystore /config/apps/decisioncenter.war/assets/truststore.jks -srcstorepass $DEFAULT_TRUSTSTORE_PASSWORD -deststorepass $DEFAULT_TRUSTSTORE_PASSWORD

0 comments on commit 060e2c7

Please sign in to comment.