check_sys/audit/system/plugins/apache.py
2023-09-14 21:34:18 +02:00

18 lines
517 B
Python

#!/usr/bin/env python3
def apache_protocols() -> dict:
ssl = dict()
# Check if apaches has disabled the bad SSL/TLS version
ssl["description"] = "Disable deprecated SSL/TLS versions"
ssl["level"] = "high"
ssl["protocols"] = list()
# https://httpd.apache.org/docs/trunk/ssl/ssl_howto.html
ssl["protocols"].append("-TLSv1")
ssl["protocols"].append("-TLSv1.1")
ssl["protocols"].append("-SSLv3")
ssl["recommand_value"] = "SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1"
return ssl