diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-05-06 22:18:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-05-06 22:18:19 +0000 |
commit | 1f37bd8757c389d15b1d5c6fe491c57e854df1f7 (patch) | |
tree | 955b0dff81989bc0684ba3e86d8113f24745dbbb /kubernetes/common/cert-wrapper/resources | |
parent | c7d20a2748a96e8c9fefb29091cd930dd4dfc257 (diff) | |
parent | bd94a04227a235319b3246e52cadc7c1e96f9c22 (diff) |
Merge "[COMMON][CERTS] Allow to provide custom certs easily"
Diffstat (limited to 'kubernetes/common/cert-wrapper/resources')
-rwxr-xr-x | kubernetes/common/cert-wrapper/resources/import-custom-certs.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kubernetes/common/cert-wrapper/resources/import-custom-certs.sh b/kubernetes/common/cert-wrapper/resources/import-custom-certs.sh index d955ecdf3c..ec1ce944c9 100755 --- a/kubernetes/common/cert-wrapper/resources/import-custom-certs.sh +++ b/kubernetes/common/cert-wrapper/resources/import-custom-certs.sh @@ -17,6 +17,7 @@ */}} CERTS_DIR=${CERTS_DIR:-/certs} +MORE_CERTS_DIR=${MORE_CERTS_DIR:-/more_certs} WORK_DIR=${WORK_DIR:-/updatedTruststore} ONAP_TRUSTSTORE=${ONAP_TRUSTSTORE:-truststoreONAPall.jks} JRE_TRUSTSTORE=${JRE_TRUSTSTORE:-$JAVA_HOME/lib/security/cacerts} @@ -47,6 +48,13 @@ for f in $CERTS_DIR/*; do fi done +for f in $MORE_CERTS_DIR/*; do + if [ ${f: -4} == ".pem" ] + then + cp $f $WORK_DIR/. + fi +done + # Prepare truststore output file if [ "$AAF_ENABLED" = "true" ] then |