[CRYP-7902] Use SSL paths as configured by profile

This commit is contained in:
Michael Boelen 2016-07-05 16:46:50 +02:00
parent 998af3d7de
commit 8b8a1a9b66
1 changed files with 1 additions and 9 deletions

View File

@ -32,15 +32,7 @@
Register --test-no CRYP-7902 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check expire date of SSL certificates"
if [ ${SKIPTEST} -eq 0 ]; then
FOUNDPROBLEM=0
# Check profiles for paths to check
for PROFILE in ${PROFILES}; do
PATHS=`grep "^ssl:certificates:" ${PROFILE} | cut -d ':' -f3`
if [ ! "${PATHS}" = "" ]; then
LogText "Added paths (from profile: ${PROFILE}): ${PATHS}"
sSSL_PATHS="${PATHS} ${sSSL_PATHS}"
fi
done
sSSL_PATHS=$(echo ${SSL_CERTIFICATE_PATHS} | sed 's/:/ /g')
sSSL_PATHS=`echo ${sSSL_PATHS} | sed 's/^ //' | tr " " "\n" | sort | uniq | tr "\n" " "`
LogText "Result after sorting: ${sSSL_PATHS}"