We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06dcd17 commit e8c7545Copy full SHA for e8c7545
rootfs/etc/cont-init.d/40-import-trusted-ssl-certs.sh
@@ -0,0 +1,14 @@
1
+#!/usr/bin/with-contenv bash
2
+
3
+# import trusted ssl certs into JRE default keystore
4
+if [ -d $SSL_TRUSTED_CERTS_FOLDER ]
5
+then
6
+ find $SSL_TRUSTED_CERTS_FOLDER -type f | while read SSL_CERT
7
+ do
8
+ ALIAS=$(basename $SSL_CERT)
9
+ KEYSTORE=${JRE_SECURITY_FOLDER}/cacerts
10
11
+ # ignore any keystore import errors
12
+ keytool -noprompt -storepass changeit -keystore $KEYSTORE -import -file $SSL_CERT -alias $ALIAS || true
13
+ done
14
+fi
0 commit comments