mirror of https://github.com/CISOfy/lynis.git
Added option: ssl-certificate-paths-to-ignore
This commit is contained in:
parent
9364baa4fa
commit
16146aabc0
|
@ -362,6 +362,13 @@
|
||||||
AddSetting "ssl-certificate-paths" "${SSL_CERTIFICATE_PATHS}" "Paths for SSL certificates"
|
AddSetting "ssl-certificate-paths" "${SSL_CERTIFICATE_PATHS}" "Paths for SSL certificates"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
ssl-certificate-paths-to-ignore)
|
||||||
|
# Retrieve paths to ignore when searching for certificates. Strip special characters, replace possible spaces
|
||||||
|
SSL_CERTIFICATE_PATHS_TO_IGNORE=$(echo ${VALUE} | tr -d '[:cntrl:]' | sed 's/ /:space:/g')
|
||||||
|
Debug "SSL paths to ignore: ${SSL_CERTIFICATE_PATHS_TO_IGNORE}"
|
||||||
|
AddSetting "ssl-certificate-paths-to-ignore" "${SSL_CERTIFICATE_PATHS_TO_IGNORE}" "Paths that should be ignored for SSL certificates"
|
||||||
|
;;
|
||||||
|
|
||||||
# Set strict mode for development and quality purposes
|
# Set strict mode for development and quality purposes
|
||||||
strict)
|
strict)
|
||||||
FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)") && SET_STRICT=1
|
FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)") && SET_STRICT=1
|
||||||
|
|
Loading…
Reference in New Issue