mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 23:05:01 +02:00
Merge pull request #756 from dvehrs/exim-tls-fix
EXIM4: Removed WARNINGs from unset certificate and private key
This commit is contained in:
commit
c68279f5b3
@ -137,28 +137,28 @@
|
|||||||
LogText "Result: ${EXIM_CERTIFICATE}"
|
LogText "Result: ${EXIM_CERTIFICATE}"
|
||||||
if [ -f "${EXIM_CERTIFICATE}" ]; then
|
if [ -f "${EXIM_CERTIFICATE}" ]; then
|
||||||
Display --indent 4 --text "- Certificate" --result "${STATUS_FOUND}" --color GREEN
|
Display --indent 4 --text "- Certificate" --result "${STATUS_FOUND}" --color GREEN
|
||||||
LogText "Result: Certificate found."
|
LogText "Result: Certificate found"
|
||||||
else
|
else
|
||||||
Display --indent 4 --text "- Certificate" --result "${STATUS_NOT_FOUND}" --color YELLOW
|
Display --indent 4 --text "- Certificate" --result "${STATUS_NOT_FOUND}" --color YELLOW
|
||||||
LogText "Result: Certificate not found."
|
LogText "Result: Certificate not found"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
LogText "Result: Certificate not set."
|
LogText "Result: Certificate not set"
|
||||||
Display --indent 4 --text "- Certificate not set" --result "${STATUS_WARNING}" --color WHITE
|
Display --indent 4 --text "- Certificate" --result "Not Configured" --color WHITE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${EXIM_PRIVATEKEY}" ]; then
|
if [ -n "${EXIM_PRIVATEKEY}" ]; then
|
||||||
LogText "Result: ${EXIM_PRIVATEKEY}"
|
LogText "Result: ${EXIM_PRIVATEKEY}"
|
||||||
if [ -f "${EXIM_PRIVATEKEY}" ]; then
|
if [ -f "${EXIM_PRIVATEKEY}" ]; then
|
||||||
LogText "Result: Private Key found."
|
LogText "Result: Private Key found"
|
||||||
Display --indent 4 --text "- Private Key" --result "${STATUS_FOUND}" --color GREEN
|
Display --indent 4 --text "- Private Key" --result "${STATUS_FOUND}" --color GREEN
|
||||||
else
|
else
|
||||||
Display --indent 4 --text "- Private Key" --result "${STATUS_NOT_FOUND}" --color YELLOW
|
Display --indent 4 --text "- Private Key" --result "${STATUS_NOT_FOUND}" --color YELLOW
|
||||||
LogText "Result: Private Key not found."
|
LogText "Result: Private Key not found"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
LogText "Result: Private Key not set."
|
LogText "Result: Private Key not set"
|
||||||
Display --indent 4 --text "- Private Key not set" --result "${STATUS_WARNING}" --color WHITE
|
Display --indent 4 --text "- Private Key" --result "Not Configured" --color WHITE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LogText "Test: Exim Verify Certificates"
|
LogText "Test: Exim Verify Certificates"
|
||||||
@ -204,35 +204,33 @@
|
|||||||
|
|
||||||
LogText "Test: Exim Try Verify Hosts"
|
LogText "Test: Exim Try Verify Hosts"
|
||||||
if [ ! -z "${EXIM_TRY_VERIFY_HOSTS}" ]; then
|
if [ ! -z "${EXIM_TRY_VERIFY_HOSTS}" ]; then
|
||||||
|
LogText "Result: Try Verify Hosts enabled"
|
||||||
case "${EXIM_TYPE}" in
|
case "${EXIM_TYPE}" in
|
||||||
"INTERNET HOST" )
|
"INTERNET HOST" )
|
||||||
LogText "Result: Try Verify Hosts enabled."
|
|
||||||
Display --indent 4 --text "- Try Verify Hosts" --result "ENABLED" --color GREEN
|
Display --indent 4 --text "- Try Verify Hosts" --result "ENABLED" --color GREEN
|
||||||
;;
|
;;
|
||||||
"SATELLITE" | "SMARTHOST" )
|
"SATELLITE" | "SMARTHOST" )
|
||||||
LogText "Result: Try Verify Hosts."
|
|
||||||
Display --indent 4 --text "- Try Verify Hosts" --result "ENABLED" --color YELLOW
|
Display --indent 4 --text "- Try Verify Hosts" --result "ENABLED" --color YELLOW
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
LogText "Result: Try Verify Hosts not enabled."
|
LogText "Result: Try Verify Hosts not enabled"
|
||||||
Display --indent 4 --text "- Try Verify Hosts" --result "NOT ENABLED" --color WHITE
|
Display --indent 4 --text "- Try Verify Hosts" --result "NOT ENABLED" --color WHITE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LogText "Test: Exim Verify Hosts"
|
LogText "Test: Exim Verify Hosts"
|
||||||
if [ ! -z "${EXIM_VERIFY_HOSTS}" ]; then
|
if [ ! -z "${EXIM_VERIFY_HOSTS}" ]; then
|
||||||
|
LogText "Result: Verify Hosts enabled"
|
||||||
case "${EXIM_TYPE}" in
|
case "${EXIM_TYPE}" in
|
||||||
"INTERNET HOST" )
|
"INTERNET HOST" )
|
||||||
LogText "Result: Verify Hosts."
|
|
||||||
Display --indent 4 --text "- Verify Hosts" --result "ENABLED" --color YELLOW
|
Display --indent 4 --text "- Verify Hosts" --result "ENABLED" --color YELLOW
|
||||||
;;
|
;;
|
||||||
"SATELLITE" | "SMARTHOST" )
|
"SATELLITE" | "SMARTHOST" )
|
||||||
LogText "Result: Verify Hosts."
|
|
||||||
Display --indent 4 --text "- Verify Hosts" --result "ENABLED" --color GREEN
|
Display --indent 4 --text "- Verify Hosts" --result "ENABLED" --color GREEN
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
LogText "Result: Verify Hosts."
|
LogText "Result: Verify Hosts not enabled"
|
||||||
Display --indent 4 --text "- Verify Hosts" --result "NOT ENABLED" --color WHITE
|
Display --indent 4 --text "- Verify Hosts" --result "NOT ENABLED" --color WHITE
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user