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

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'certbot-apache/certbot_apache/override_centos.py')
-rw-r--r--certbot-apache/certbot_apache/override_centos.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/certbot-apache/certbot_apache/override_centos.py b/certbot-apache/certbot_apache/override_centos.py
index d4a7d7137..7c7492dbf 100644
--- a/certbot-apache/certbot_apache/override_centos.py
+++ b/certbot-apache/certbot_apache/override_centos.py
@@ -1,6 +1,7 @@
""" Distribution specific override class for CentOS family (RHEL, Fedora) """
import logging
+import pkg_resources
import zope.interface
from certbot import errors
@@ -38,6 +39,8 @@ class CentOSConfigurator(configurator.ApacheConfigurator):
handle_modules=False,
handle_sites=False,
challenge_location="/etc/httpd/conf.d",
+ MOD_SSL_CONF_SRC=pkg_resources.resource_filename(
+ "certbot_apache", "centos-options-ssl-apache.conf")
)
def config_test(self):
@@ -72,18 +75,6 @@ class CentOSConfigurator(configurator.ApacheConfigurator):
# Finish with actual config check to see if systemctl restart helped
super(CentOSConfigurator, self).config_test()
- def pick_apache_config(self):
- """
- Pick the appropriate TLS Apache configuration file for current version of Apache and OS.
- :return: the path to the TLS Apache configuration file to use
- :rtype: str
- """
- # Disabling TLS session tickets is supported by Apache 2.4.11+.
- # So for old versions of Apache we pick a configuration without this option.
- if self.version < (2, 4, 11):
- return apache_util.find_ssl_apache_conf("centos-old")
- return apache_util.find_ssl_apache_conf("centos-current")
-
def _prepare_options(self):
"""
Override the options dictionary initialization in order to support