diff --git a/lib/ulib/apache.tools b/lib/ulib/apache.tools index 8445fcb..722b6e5 100644 --- a/lib/ulib/apache.tools +++ b/lib/ulib/apache.tools @@ -435,10 +435,12 @@ function apache_autoconf() { certsconf= if [ "${confname%.ssl.conf}" != "$confname" ]; then - if [ -d "$certsconfdir" ]; then - certsconf="${confname%.ssl.conf}-certs.conf" - else - ewarn "$conf: fichier ignoré parce que --certsconfdir n'a pas été spécifié" + if quietgrep -E '^[^#]*@@(cert|key|ca)@@' "$conf"; then + if [ -d "$certsconfdir" ]; then + certsconf="${confname%.ssl.conf}-certs.conf" + else + ewarn "$conf: fichier ignoré parce que --certsconfdir n'a pas été spécifié" + fi fi fi case "$confname" in