certbot/certbot-apache/certbot_apache/_internal
ohemorange 9e3c348dff
Disable TLS session tickets in Apache (#7771)
Fixes #7350.

This PR changes the parsed modules from a `set` to a `dict`, with the filepath argument as the value. Accordingly, after calling `enable_mod` to enable `ssl_module`, modules now need to be re-parsed, so call `reset_modules`.

* Add mechanism for selecting apache config file, based on work done in #7191.

* Check OpenSSL version

* Remove os imports

* debian override still needs os

* Reformat remaining apache tests with modules dict syntax

* Clean up more apache tests

* Switch from property to method for openssl and add tests for coverage.

* Sometimes the dict location will be None in which case we should in fact return None

* warn thoroughly and consistently in openssl_version function

* update tests for new warnings

* read file as bytes, and factor out the open for testing

* normalize ssl_module_location path to account for being relative to server root

* Use byte literals in a python 2 and 3 compatible way

* string does need to be a literal

* patch builtins open

* add debug, remove space

* Add test to check if OpenSSL detection is working on different systems

* fix relative test location for cwd

* put </IfModule> on its own line in test case

* Revert test file to status in master.

* Call augeas load before reparsing modules to pick up the changes

* fix grep, tail, and mod_ssl location on centos

* strip the trailing whitespace from fedora

* just use LooseVersion in test

* call apache2ctl on debian systems

* Use sudo for apache2ctl command

* add check to make sure we're getting a version

* Add boolean so we don't warn on debian/ubuntu before trying to enable mod_ssl

* Reduce warnings while testing by setting mock _openssl_version.

* Make sure we're not throwing away any unwritten changes to the config

* test last warning case for coverage

* text changes for clarity
2020-03-23 16:49:52 -07:00
..
augeas_lens Make the contents of the apache plugin private (#7579) 2019-11-25 09:44:40 -08:00
tls_configs Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
__init__.py Make the contents of the apache plugin private (#7579) 2019-11-25 09:44:40 -08:00
apache_util.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
apacheparser.py Modifications needed for merging to master 2020-01-06 17:19:33 +02:00
assertions.py Modifications needed for merging to master 2020-01-06 17:19:33 +02:00
augeasparser.py Cleanup more pylint issues (#7848) 2020-03-16 09:43:48 -07:00
configurator.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
constants.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
display_ops.py Reorganize imports (#7616) 2019-12-09 15:50:20 -05:00
dualparser.py Modifications needed for merging to master 2020-01-06 17:19:33 +02:00
entrypoint.py Cleanup more pylint issues (#7848) 2020-03-16 09:43:48 -07:00
http_01.py Merge pull request #7742 from osirisinferi/force-non-restrictive-umask 2020-02-26 17:09:20 -08:00
interfaces.py Cleanup more pylint issues (#7848) 2020-03-16 09:43:48 -07:00
obj.py Remove useless pylint error suppression directives (#7657) 2020-02-13 13:56:16 -08:00
override_arch.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
override_centos.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
override_darwin.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
override_debian.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
override_fedora.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
override_gentoo.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
override_suse.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
parser.py Disable TLS session tickets in Apache (#7771) 2020-03-23 16:49:52 -07:00
parsernode_util.py Merge remote-tracking branch 'origin/master' into ap2_merge_master 2020-01-06 17:17:31 +02:00