Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2016-04-27 17:51:12 +0300
committermboelen <michael@cisofy.com>2016-04-27 17:51:12 +0300
commitf109c318d9f03be9adad9067c31b93640401a903 (patch)
tree37137b32ec37950397de5d6cafd16b9180fc6eed /include/tests_webservers
parent1825d91c852cf11c4ca52855cd2777a4f20593e3 (diff)
Detect when weak protocols are used, simplify nginx test
Diffstat (limited to 'include/tests_webservers')
-rw-r--r--include/tests_webservers3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/tests_webservers b/include/tests_webservers
index 7d0b3840..5f1fc101 100644
--- a/include/tests_webservers
+++ b/include/tests_webservers
@@ -504,8 +504,7 @@
if [ ${NGINX_SSL_PROTOCOLS} -eq 1 ]; then
Display --indent 8 --text "- Protocols configured" --result "YES" --color GREEN
- FIND=`${GREPBINARY} "ssl_protocols" ${NGINX_CONF_LOCATION} | ${GREPBINARY} "SSLv[123]"`
- if [ "${FIND}" = "" ]; then
+ if [ ${NGINX_WEAK_SSL_PROTOCOL_FOUND} -eq 0 ]; then
Display --indent 10 --text "- Insecure protocols found" --result "NO" --color GREEN
else
Display --indent 10 --text "- Insecure protocols found" --result "YES" --color RED