mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-24 06:14:33 +02:00
Merge pull request #17 from d4t4king/master
Tweaked nginx protocol check so it actually works. Added insecure prototocols.
This commit is contained in:
commit
1586332342
@ -824,6 +824,7 @@
|
|||||||
if [ "${VALUE}" = "on" ]; then NGINX_SSL_PREFER_SERVER_CIPHERS=1; fi
|
if [ "${VALUE}" = "on" ]; then NGINX_SSL_PREFER_SERVER_CIPHERS=1; fi
|
||||||
;;
|
;;
|
||||||
ssl_protocols)
|
ssl_protocols)
|
||||||
|
NGINX_SSL_PROTOCOLS=1
|
||||||
;;
|
;;
|
||||||
ssl_session_cache)
|
ssl_session_cache)
|
||||||
;;
|
;;
|
||||||
|
@ -501,6 +501,12 @@
|
|||||||
|
|
||||||
if [ ${NGINX_SSL_PROTOCOLS} -eq 1 ]; then
|
if [ ${NGINX_SSL_PROTOCOLS} -eq 1 ]; then
|
||||||
Display --indent 8 --text "- Protocols configured" --result "YES" --color GREEN
|
Display --indent 8 --text "- Protocols configured" --result "YES" --color GREEN
|
||||||
|
FIND=`${GREPBINARY} "ssl_protocols" ${NGINX_CONF_LOCATION} | ${GREPBINARY} "SSLv[12]"`
|
||||||
|
if [ "${FIND}" = "" ]; then
|
||||||
|
Display --indent 10 --text "- Insecure protocols found" --result "NO" --color GREEN
|
||||||
|
else
|
||||||
|
Display --indent 10 --text "- Insecure protocols found" --result "YES" --color RED
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
Display --indent 8 --text "- Protocols configured" --result "NO" --color RED
|
Display --indent 8 --text "- Protocols configured" --result "NO" --color RED
|
||||||
NGINX_SSL_SUGGESTION=1
|
NGINX_SSL_SUGGESTION=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user