certbot-apache 3.1.0__tar.gz → 3.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {certbot_apache-3.1.0/certbot_apache.egg-info → certbot_apache-3.2.0}/PKG-INFO +14 -4
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/configurator.py +8 -13
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/dualparser.py +4 -4
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/http_01.py +1 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/obj.py +1 -2
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/parser.py +4 -5
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/util.py +23 -18
- {certbot_apache-3.1.0 → certbot_apache-3.2.0/certbot_apache.egg-info}/PKG-INFO +14 -4
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache.egg-info/requires.txt +2 -2
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/setup.py +2 -1
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/LICENSE.txt +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/MANIFEST.in +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/README.rst +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/__init__.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/__init__.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/apache_util.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/apacheparser.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/assertions.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/augeas_lens/httpd.aug +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/augeasparser.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/constants.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/display_ops.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/entrypoint.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/interfaces.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/override_alpine.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/override_arch.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/override_centos.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/override_darwin.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/override_debian.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/override_fedora.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/override_gentoo.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/override_suse.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/override_void.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/parsernode_util.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/__init__.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/augeasnode_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/autohsts_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/centos_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/complex_parsing_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/configurator_reverter_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/configurator_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/debian_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/display_ops_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/dualnode_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/entrypoint_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/fedora_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/gentoo_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/http_01_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/obj_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/parser_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/parsernode_configurator_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/parsernode_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/parsernode_util_test.py +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf/httpd.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf/magic +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.d/README +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.d/autoindex.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.d/centos.example.com.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.d/ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.d/userdir.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.d/welcome.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.modules.d/00-base.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.modules.d/00-dav.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.modules.d/00-lua.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.modules.d/00-mpm.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.modules.d/00-proxy.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.modules.d/00-ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.modules.d/00-systemd.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf.modules.d/01-cgi.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/sites +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/centos7_apache/apache/sysconfig/httpd +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/complex_parsing/apache2.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/complex_parsing/conf-enabled/dummy.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/complex_parsing/test_fnmatch.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/complex_parsing/test_variables.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/apache2.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/conf-available/bad_conf_file.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/conf-available/other-vhosts-access-log.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/conf-available/security.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/conf-available/serve-cgi-bin.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/conf-enabled/other-vhosts-access-log.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/conf-enabled/security.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/conf-enabled/serve-cgi-bin.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/envvars +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-available/authz_svn.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-available/dav.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-available/dav_svn.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-available/dav_svn.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-available/rewrite.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-available/ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-available/ssl.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-enabled/authz_svn.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-enabled/dav.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-enabled/dav_svn.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/mods-enabled/dav_svn.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/ports.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/sites-available/another_wildcard.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/sites-available/old-and-default.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/sites-available/wildcard.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/sites-enabled/another_wildcard.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/sites-enabled/old-and-default.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/apache2/sites-enabled/wildcard.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/augeas_vhosts/sites +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/apache2.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/conf-available/other-vhosts-access-log.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/conf-available/security.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/conf-available/serve-cgi-bin.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/conf-enabled/other-vhosts-access-log.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/conf-enabled/security.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/conf-enabled/serve-cgi-bin.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/envvars +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/mods-available/ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/mods-available/ssl.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/ports.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/sites-available/000-default.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/sites-available/default-ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/apache2/sites-enabled/000-default.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/default_vhost/sites +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multi_vhosts/apache2/apache2.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multi_vhosts/apache2/envvars +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multi_vhosts/apache2/ports.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multi_vhosts/apache2/sites-available/default.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multi_vhosts/apache2/sites-available/multi-vhost.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multi_vhosts/apache2/sites-enabled/default.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multi_vhosts/apache2/sites-enabled/multi-vhost.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/apache2.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/conf-available/bad_conf_file.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/conf-available/other-vhosts-access-log.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/conf-available/security.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/conf-available/serve-cgi-bin.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/conf-enabled/other-vhosts-access-log.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/conf-enabled/security.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/conf-enabled/serve-cgi-bin.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/envvars +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-available/authz_svn.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-available/dav.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-available/dav_svn.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-available/dav_svn.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-available/rewrite.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-available/ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-available/ssl.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-enabled/authz_svn.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-enabled/dav.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-enabled/dav_svn.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/mods-enabled/dav_svn.load +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/ports.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/000-default.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/certbot.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/default-ssl-port-only.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/default-ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/duplicatehttp.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/duplicatehttps.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/empty.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/encryption-example.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/mod_macro-example.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/no-directives.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/ocsp-ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-available/wildcard.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/000-default.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/certbot.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/default-ssl-port-only.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/default-ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/duplicatehttp.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/duplicatehttps.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/encryption-example.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/mod_macro-example.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/non-symlink.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/ocsp-ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/apache2/sites-enabled/wildcard.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/debian_apache_2_4/multiple_vhosts/sites +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/httpd.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/magic +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_default_settings.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_error_documents.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_languages.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_mod_autoindex.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_mod_info.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_mod_log_config.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_mod_mime.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_mod_status.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_mod_userdir.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/00_mpm.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/10_mod_mem_cache.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/40_mod_ssl.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/41_mod_http2.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/45_mod_dav.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/modules.d/46_mod_ldap.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/vhosts.d/00_default_ssl_vhost.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/vhosts.d/00_default_vhost.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/vhosts.d/default_vhost.include +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/vhosts.d/gentoo.example.com.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/conf.d/apache2 +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/sites +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tls_configs/current-options-ssl-apache.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tls_configs/old-options-ssl-apache.conf +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/py.typed +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache.egg-info/SOURCES.txt +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache.egg-info/dependency_links.txt +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache.egg-info/entry_points.txt +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache.egg-info/top_level.txt +0 -0
- {certbot_apache-3.1.0 → certbot_apache-3.2.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: certbot-apache
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Apache plugin for Certbot
|
|
5
5
|
Home-page: https://github.com/certbot/certbot
|
|
6
6
|
Author: Certbot Project
|
|
@@ -17,6 +17,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
21
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
21
22
|
Classifier: Topic :: Security
|
|
22
23
|
Classifier: Topic :: System :: Installation/Setup
|
|
@@ -25,10 +26,19 @@ Classifier: Topic :: System :: Systems Administration
|
|
|
25
26
|
Classifier: Topic :: Utilities
|
|
26
27
|
Requires-Python: >=3.9
|
|
27
28
|
License-File: LICENSE.txt
|
|
28
|
-
Requires-Dist: acme>=3.
|
|
29
|
-
Requires-Dist: certbot>=3.
|
|
29
|
+
Requires-Dist: acme>=3.2.0
|
|
30
|
+
Requires-Dist: certbot>=3.2.0
|
|
30
31
|
Requires-Dist: python-augeas
|
|
31
32
|
Provides-Extra: dev
|
|
32
33
|
Requires-Dist: apacheconfig>=0.3.2; extra == "dev"
|
|
33
34
|
Provides-Extra: test
|
|
34
35
|
Requires-Dist: pytest; extra == "test"
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: home-page
|
|
40
|
+
Dynamic: license
|
|
41
|
+
Dynamic: provides-extra
|
|
42
|
+
Dynamic: requires-dist
|
|
43
|
+
Dynamic: requires-python
|
|
44
|
+
Dynamic: summary
|
|
@@ -271,10 +271,10 @@ class ApacheConfigurator(common.Configurator):
|
|
|
271
271
|
self.parser: parser.ApacheParser
|
|
272
272
|
self.parser_root: Optional[dualparser.DualBlockNode] = None
|
|
273
273
|
self.version = version
|
|
274
|
-
self._openssl_version = openssl_version
|
|
274
|
+
self._openssl_version: Optional[str] = openssl_version
|
|
275
275
|
self.vhosts: List[obj.VirtualHost]
|
|
276
276
|
self.options = copy.deepcopy(self.OS_DEFAULTS)
|
|
277
|
-
self._enhance_func: Dict[str, Callable] = {
|
|
277
|
+
self._enhance_func: Dict[str, Callable[[obj.VirtualHost, Any], None]] = {
|
|
278
278
|
"redirect": self._enable_redirect,
|
|
279
279
|
"ensure-http-header": self._set_http_header,
|
|
280
280
|
"staple-ocsp": self._enable_ocsp_stapling,
|
|
@@ -599,7 +599,7 @@ class ApacheConfigurator(common.Configurator):
|
|
|
599
599
|
"""Prompts user to choose vhosts to install a wildcard certificate for"""
|
|
600
600
|
|
|
601
601
|
# Get all vhosts that are covered by the wildcard domain
|
|
602
|
-
vhosts: List = self._vhosts_for_wildcard(domain)
|
|
602
|
+
vhosts: List[obj.VirtualHost] = self._vhosts_for_wildcard(domain)
|
|
603
603
|
|
|
604
604
|
# Go through the vhosts, making sure that we cover all the names
|
|
605
605
|
# present, but preferring the SSL vhosts
|
|
@@ -994,9 +994,7 @@ class ApacheConfigurator(common.Configurator):
|
|
|
994
994
|
for arg in args:
|
|
995
995
|
arg_value = self.parser.get_arg(arg)
|
|
996
996
|
if arg_value is not None:
|
|
997
|
-
|
|
998
|
-
if addr is not None:
|
|
999
|
-
addrs.add(addr)
|
|
997
|
+
addrs.add(obj.Addr.fromstring(arg_value))
|
|
1000
998
|
is_ssl = False
|
|
1001
999
|
|
|
1002
1000
|
if self.parser.find_dir("SSLEngine", "on", start=path, exclude=False):
|
|
@@ -1126,9 +1124,7 @@ class ApacheConfigurator(common.Configurator):
|
|
|
1126
1124
|
"""
|
|
1127
1125
|
addrs = set()
|
|
1128
1126
|
for param in node.parameters:
|
|
1129
|
-
|
|
1130
|
-
if addr:
|
|
1131
|
-
addrs.add(addr)
|
|
1127
|
+
addrs.add(obj.Addr.fromstring(param))
|
|
1132
1128
|
|
|
1133
1129
|
is_ssl = False
|
|
1134
1130
|
# Exclusion to match the behavior in get_virtual_hosts_v2
|
|
@@ -1646,10 +1642,9 @@ class ApacheConfigurator(common.Configurator):
|
|
|
1646
1642
|
for addr in ssl_addr_p:
|
|
1647
1643
|
old_addr = obj.Addr.fromstring(
|
|
1648
1644
|
str(self.parser.get_arg(addr)))
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
ssl_addrs.add(ssl_addr)
|
|
1645
|
+
ssl_addr = old_addr.get_addr_obj("443")
|
|
1646
|
+
self.parser.aug.set(addr, str(ssl_addr))
|
|
1647
|
+
ssl_addrs.add(ssl_addr)
|
|
1653
1648
|
|
|
1654
1649
|
return ssl_addrs
|
|
1655
1650
|
|
|
@@ -6,7 +6,6 @@ from typing import List
|
|
|
6
6
|
from typing import Optional
|
|
7
7
|
from typing import Set
|
|
8
8
|
from typing import Tuple
|
|
9
|
-
from typing import Type
|
|
10
9
|
from typing import TYPE_CHECKING
|
|
11
10
|
from typing import TypeVar
|
|
12
11
|
|
|
@@ -21,7 +20,8 @@ if TYPE_CHECKING:
|
|
|
21
20
|
|
|
22
21
|
GenericAugeasParserNode = TypeVar("GenericAugeasParserNode", bound="AugeasParserNode")
|
|
23
22
|
GenericApacheParserNode = TypeVar("GenericApacheParserNode", bound="ApacheParserNode")
|
|
24
|
-
|
|
23
|
+
# Circular imports needs Any, see https://github.com/python/mypy/issues/11910
|
|
24
|
+
GenericDualNode = TypeVar("GenericDualNode", bound="DualNodeBase[Any, Any]")
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class DualNodeBase(Generic[GenericAugeasParserNode, GenericApacheParserNode]):
|
|
@@ -53,11 +53,11 @@ class DualNodeBase(Generic[GenericAugeasParserNode, GenericApacheParserNode]):
|
|
|
53
53
|
assertions.assertEqualSimple(firstval, secondval)
|
|
54
54
|
return firstval
|
|
55
55
|
|
|
56
|
-
def find_ancestors(self, name: str) -> List["
|
|
56
|
+
def find_ancestors(self, name: str) -> List["DualBlockNode"]:
|
|
57
57
|
""" Traverses the ancestor tree and returns ancestors matching name """
|
|
58
58
|
return self._find_helper(DualBlockNode, "find_ancestors", name)
|
|
59
59
|
|
|
60
|
-
def _find_helper(self, nodeclass:
|
|
60
|
+
def _find_helper(self, nodeclass: type[GenericDualNode], findfunc: str, search: str,
|
|
61
61
|
**kwargs: Any) -> List[GenericDualNode]:
|
|
62
62
|
"""A helper for find_* functions. The function specific attributes should
|
|
63
63
|
be passed as keyword arguments.
|
|
@@ -172,6 +172,7 @@ class ApacheHttp01(common.ChallengePerformer):
|
|
|
172
172
|
|
|
173
173
|
def _set_up_challenge(self, achall: KeyAuthorizationAnnotatedChallenge
|
|
174
174
|
) -> KeyAuthorizationChallengeResponse:
|
|
175
|
+
response: KeyAuthorizationChallengeResponse
|
|
175
176
|
response, validation = achall.response_and_validation()
|
|
176
177
|
|
|
177
178
|
name: str = os.path.join(self.challenge_dir, achall.chall.encode("token"))
|
|
@@ -3,7 +3,6 @@ import re
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
from typing import Iterable
|
|
5
5
|
from typing import Optional
|
|
6
|
-
from typing import Pattern
|
|
7
6
|
from typing import Set
|
|
8
7
|
from typing import Union
|
|
9
8
|
|
|
@@ -126,7 +125,7 @@ class VirtualHost:
|
|
|
126
125
|
|
|
127
126
|
"""
|
|
128
127
|
# ?: is used for not returning enclosed characters
|
|
129
|
-
strip_name: Pattern = re.compile(r"^(?:.+://)?([^ :$]*)")
|
|
128
|
+
strip_name: re.Pattern[str] = re.compile(r"^(?:.+://)?([^ :$]*)")
|
|
130
129
|
|
|
131
130
|
def __init__(self, filepath: str, path: str, addrs: Set["Addr"], ssl: bool,
|
|
132
131
|
enabled: bool, name: Optional[str] = None, aliases: Optional[Set[str]] = None,
|
|
@@ -9,7 +9,6 @@ from typing import Iterable
|
|
|
9
9
|
from typing import List
|
|
10
10
|
from typing import Mapping
|
|
11
11
|
from typing import Optional
|
|
12
|
-
from typing import Pattern
|
|
13
12
|
from typing import Set
|
|
14
13
|
from typing import Tuple
|
|
15
14
|
from typing import TYPE_CHECKING
|
|
@@ -43,7 +42,7 @@ class ApacheParser:
|
|
|
43
42
|
default - user config file, name - NameVirtualHost,
|
|
44
43
|
|
|
45
44
|
"""
|
|
46
|
-
arg_var_interpreter: Pattern = re.compile(r"\$\{[^ \}]*}")
|
|
45
|
+
arg_var_interpreter: re.Pattern[str] = re.compile(r"\$\{[^ \}]*}")
|
|
47
46
|
fnmatch_chars: Set[str] = {"*", "?", "\\", "[", "]"}
|
|
48
47
|
|
|
49
48
|
# pylint: disable=unused-argument
|
|
@@ -127,7 +126,7 @@ class ApacheParser:
|
|
|
127
126
|
|
|
128
127
|
self.aug.set("/test/path/testing/arg", "aRgUMeNT")
|
|
129
128
|
try:
|
|
130
|
-
matches = self.aug.match(
|
|
129
|
+
matches: List[str] = self.aug.match(
|
|
131
130
|
"/test//*[self::arg=~regexp('argument', 'i')]")
|
|
132
131
|
except RuntimeError:
|
|
133
132
|
self.aug.remove("/test/path")
|
|
@@ -390,7 +389,7 @@ class ApacheParser:
|
|
|
390
389
|
:rtype: str
|
|
391
390
|
|
|
392
391
|
"""
|
|
393
|
-
if_mods = self.aug.match(("%s/IfModule/*[self::arg='%s']" %
|
|
392
|
+
if_mods: List[str] = self.aug.match(("%s/IfModule/*[self::arg='%s']" %
|
|
394
393
|
(aug_conf_path, mod)))
|
|
395
394
|
if not if_mods:
|
|
396
395
|
return self.create_ifmod(aug_conf_path, mod)
|
|
@@ -578,7 +577,7 @@ class ApacheParser:
|
|
|
578
577
|
This also converts all variables and parameters appropriately.
|
|
579
578
|
|
|
580
579
|
"""
|
|
581
|
-
value = self.aug.get(match)
|
|
580
|
+
value: str = self.aug.get(match)
|
|
582
581
|
|
|
583
582
|
# No need to strip quotes for variables, as apache2ctl already does
|
|
584
583
|
# this, but we do need to strip quotes for all normal arguments.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"""Common utilities for certbot_apache."""
|
|
2
2
|
import shutil
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from typing import Tuple
|
|
3
6
|
import unittest
|
|
4
7
|
from unittest import mock
|
|
5
8
|
|
|
@@ -16,9 +19,10 @@ from certbot_apache._internal import obj
|
|
|
16
19
|
|
|
17
20
|
class ApacheTest(unittest.TestCase):
|
|
18
21
|
|
|
19
|
-
def setUp(self, test_dir="debian_apache_2_4/multiple_vhosts",
|
|
20
|
-
config_root="debian_apache_2_4/multiple_vhosts/apache2",
|
|
21
|
-
vhost_root="debian_apache_2_4/multiple_vhosts/apache2/sites-available"
|
|
22
|
+
def setUp(self, test_dir: str = "debian_apache_2_4/multiple_vhosts",
|
|
23
|
+
config_root: str = "debian_apache_2_4/multiple_vhosts/apache2",
|
|
24
|
+
vhost_root: str = "debian_apache_2_4/multiple_vhosts/apache2/sites-available"
|
|
25
|
+
) -> None:
|
|
22
26
|
# pylint: disable=arguments-differ
|
|
23
27
|
self.temp_dir, self.config_dir, self.work_dir = common.dir_setup(
|
|
24
28
|
test_dir=test_dir,
|
|
@@ -27,7 +31,7 @@ class ApacheTest(unittest.TestCase):
|
|
|
27
31
|
self.config_path = os.path.join(self.temp_dir, config_root)
|
|
28
32
|
self.vhost_path = os.path.join(self.temp_dir, vhost_root)
|
|
29
33
|
|
|
30
|
-
self.rsa512jwk = jose.JWKRSA.load(test_util.load_vector(
|
|
34
|
+
self.rsa512jwk = jose.jwk.JWKRSA.load(test_util.load_vector(
|
|
31
35
|
"rsa512_key.pem"))
|
|
32
36
|
|
|
33
37
|
self.config = get_apache_configurator(self.config_path, vhost_root,
|
|
@@ -50,7 +54,7 @@ class ApacheTest(unittest.TestCase):
|
|
|
50
54
|
os.path.pardir, "sites-available", vhost_basename)
|
|
51
55
|
os.symlink(target, vhost)
|
|
52
56
|
|
|
53
|
-
def tearDown(self):
|
|
57
|
+
def tearDown(self) -> None:
|
|
54
58
|
shutil.rmtree(self.temp_dir)
|
|
55
59
|
shutil.rmtree(self.config_dir)
|
|
56
60
|
shutil.rmtree(self.work_dir)
|
|
@@ -58,9 +62,10 @@ class ApacheTest(unittest.TestCase):
|
|
|
58
62
|
|
|
59
63
|
class ParserTest(ApacheTest):
|
|
60
64
|
|
|
61
|
-
def setUp(self, test_dir="debian_apache_2_4/multiple_vhosts",
|
|
62
|
-
config_root="debian_apache_2_4/multiple_vhosts/apache2",
|
|
63
|
-
vhost_root="debian_apache_2_4/multiple_vhosts/apache2/sites-available"
|
|
65
|
+
def setUp(self, test_dir: str = "debian_apache_2_4/multiple_vhosts",
|
|
66
|
+
config_root: str = "debian_apache_2_4/multiple_vhosts/apache2",
|
|
67
|
+
vhost_root: str = "debian_apache_2_4/multiple_vhosts/apache2/sites-available"
|
|
68
|
+
) -> None:
|
|
64
69
|
super().setUp(test_dir, config_root, vhost_root)
|
|
65
70
|
|
|
66
71
|
from certbot_apache._internal.parser import ApacheParser
|
|
@@ -73,12 +78,12 @@ class ParserTest(ApacheTest):
|
|
|
73
78
|
|
|
74
79
|
|
|
75
80
|
def get_apache_configurator(
|
|
76
|
-
config_path, vhost_path,
|
|
77
|
-
config_dir, work_dir, version=(2, 4, 7),
|
|
78
|
-
os_info="generic",
|
|
79
|
-
conf_vhost_path=None,
|
|
80
|
-
use_parsernode=False,
|
|
81
|
-
openssl_version="1.1.1a"):
|
|
81
|
+
config_path: str, vhost_path: str,
|
|
82
|
+
config_dir: str, work_dir: str, version: Tuple[int, int, int] = (2, 4, 7),
|
|
83
|
+
os_info: str = "generic",
|
|
84
|
+
conf_vhost_path: Optional[str] = None,
|
|
85
|
+
use_parsernode: bool = False,
|
|
86
|
+
openssl_version: str = "1.1.1a") -> configurator.ApacheConfigurator:
|
|
82
87
|
"""Create an Apache Configurator with the specified options.
|
|
83
88
|
|
|
84
89
|
:param conf: Function that returns binary paths. self.conf in Configurator
|
|
@@ -124,7 +129,7 @@ def get_apache_configurator(
|
|
|
124
129
|
return config
|
|
125
130
|
|
|
126
131
|
|
|
127
|
-
def get_vh_truth(temp_dir, config_name):
|
|
132
|
+
def get_vh_truth(temp_dir: str, config_name: str) -> Optional[List[obj.VirtualHost]]:
|
|
128
133
|
"""Return the ground truth for the specified directory."""
|
|
129
134
|
if config_name == "debian_apache_2_4/multiple_vhosts":
|
|
130
135
|
prefix = os.path.join(
|
|
@@ -146,13 +151,13 @@ def get_vh_truth(temp_dir, config_name):
|
|
|
146
151
|
os.path.join(prefix, "000-default.conf"),
|
|
147
152
|
os.path.join(aug_pre, "000-default.conf/VirtualHost"),
|
|
148
153
|
{obj.Addr.fromstring("*:80"),
|
|
149
|
-
|
|
154
|
+
obj.Addr.fromstring("[::]:80")},
|
|
150
155
|
False, True, "ip-172-30-0-17"),
|
|
151
156
|
obj.VirtualHost(
|
|
152
157
|
os.path.join(prefix, "certbot.conf"),
|
|
153
158
|
os.path.join(aug_pre, "certbot.conf/VirtualHost"),
|
|
154
159
|
{obj.Addr.fromstring("*:80")}, False, True,
|
|
155
|
-
"certbot.demo", aliases=
|
|
160
|
+
"certbot.demo", aliases={"www.certbot.demo"}),
|
|
156
161
|
obj.VirtualHost(
|
|
157
162
|
os.path.join(prefix, "mod_macro-example.conf"),
|
|
158
163
|
os.path.join(aug_pre,
|
|
@@ -168,7 +173,7 @@ def get_vh_truth(temp_dir, config_name):
|
|
|
168
173
|
os.path.join(prefix, "wildcard.conf"),
|
|
169
174
|
os.path.join(aug_pre, "wildcard.conf/VirtualHost"),
|
|
170
175
|
{obj.Addr.fromstring("*:80")}, False, True,
|
|
171
|
-
"ip-172-30-0-17", aliases=
|
|
176
|
+
"ip-172-30-0-17", aliases={"*.blue.purple.com"}),
|
|
172
177
|
obj.VirtualHost(
|
|
173
178
|
os.path.join(prefix, "ocsp-ssl.conf"),
|
|
174
179
|
os.path.join(aug_pre, "ocsp-ssl.conf/IfModule/VirtualHost"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: certbot-apache
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Apache plugin for Certbot
|
|
5
5
|
Home-page: https://github.com/certbot/certbot
|
|
6
6
|
Author: Certbot Project
|
|
@@ -17,6 +17,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
21
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
21
22
|
Classifier: Topic :: Security
|
|
22
23
|
Classifier: Topic :: System :: Installation/Setup
|
|
@@ -25,10 +26,19 @@ Classifier: Topic :: System :: Systems Administration
|
|
|
25
26
|
Classifier: Topic :: Utilities
|
|
26
27
|
Requires-Python: >=3.9
|
|
27
28
|
License-File: LICENSE.txt
|
|
28
|
-
Requires-Dist: acme>=3.
|
|
29
|
-
Requires-Dist: certbot>=3.
|
|
29
|
+
Requires-Dist: acme>=3.2.0
|
|
30
|
+
Requires-Dist: certbot>=3.2.0
|
|
30
31
|
Requires-Dist: python-augeas
|
|
31
32
|
Provides-Extra: dev
|
|
32
33
|
Requires-Dist: apacheconfig>=0.3.2; extra == "dev"
|
|
33
34
|
Provides-Extra: test
|
|
34
35
|
Requires-Dist: pytest; extra == "test"
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: home-page
|
|
40
|
+
Dynamic: license
|
|
41
|
+
Dynamic: provides-extra
|
|
42
|
+
Dynamic: requires-dist
|
|
43
|
+
Dynamic: requires-python
|
|
44
|
+
Dynamic: summary
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from setuptools import find_packages
|
|
2
2
|
from setuptools import setup
|
|
3
3
|
|
|
4
|
-
version = '3.
|
|
4
|
+
version = '3.2.0'
|
|
5
5
|
|
|
6
6
|
install_requires = [
|
|
7
7
|
# We specify the minimum acme and certbot version as the current plugin
|
|
@@ -41,6 +41,7 @@ setup(
|
|
|
41
41
|
'Programming Language :: Python :: 3.10',
|
|
42
42
|
'Programming Language :: Python :: 3.11',
|
|
43
43
|
'Programming Language :: Python :: 3.12',
|
|
44
|
+
'Programming Language :: Python :: 3.13',
|
|
44
45
|
'Topic :: Internet :: WWW/HTTP',
|
|
45
46
|
'Topic :: Security',
|
|
46
47
|
'Topic :: System :: Installation/Setup',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/augeas_lens/httpd.aug
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/augeasnode_test.py
RENAMED
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/autohsts_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/complex_parsing_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/configurator_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/display_ops_test.py
RENAMED
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/dualnode_test.py
RENAMED
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/entrypoint_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/http_01_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/parsernode_test.py
RENAMED
|
File without changes
|
{certbot_apache-3.1.0 → certbot_apache-3.2.0}/certbot_apache/_internal/tests/parsernode_util_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|