Skip to content

Commit e8c7545

Browse files
authoredJul 24, 2016
Create 40-import-trusted-ssl-certs.sh
1 parent 06dcd17 commit e8c7545

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
Please sign in to comment.