On Void Linux certbot-apache doesn't out of the box because the defaults used by it aren't applicable to the distro. I was thinking of adding a configuration for it to make the experience a bit better but I am not what those options should be. I thought of filing a PR and discussing it there but I think it's better to ask here first so here it goes.
In the certbot repo, I create a file named
certbot-apache/certbot_apache/_internal/override_void.py with the contents:
""" Distribution specific override class for Arch Linux """ import zope.interface from certbot import interfaces from certbot_apache._internal import configurator from certbot_apache._internal.configurator import OsOptions @zope.interface.provider(interfaces.IPluginFactory) class ArchConfigurator(configurator.ApacheConfigurator): """Arch Linux specific ApacheConfigurator override class""" OS_DEFAULTS = OsOptions( server_root="/etc/apache", vhost_root="/etc/apache/conf", vhost_files="*.conf", logs_root="/var/log/httpd", ctl="apachectl", version_cmd=['apachectl', '-v'], restart_cmd=['apachectl', 'graceful'], conftest_cmd=['apachectl', 'configtest'], challenge_location="/etc/apache/conf", )
The problem is Void Linux's apache package doesn't come with a directory that looks like an intended vhost_dir. So I am not sure what I should set the
Secondly I don't know what
challenge_location means so I don't know what to set it to.
Any input regarding these two issues is appreciated. For reference I set up Apache to serve a simple static website and was able to install certificates using
certbot --apache --apache-ctl /usr/bin/apachectl --apache-server-root /etc/apache. But it would be nice to have this preconfigured in the package which is why I am asking for help here.
Edit: The configuration files supplied by the package are as follows:
/etc/apache/extra/httpd-autoindex.conf /etc/apache/extra/httpd-dav.conf /etc/apache/extra/httpd-default.conf /etc/apache/extra/httpd-info.conf /etc/apache/extra/httpd-languages.conf /etc/apache/extra/httpd-manual.conf /etc/apache/extra/httpd-mpm.conf /etc/apache/extra/httpd-multilang-errordoc.conf /etc/apache/extra/httpd-ssl.conf /etc/apache/extra/httpd-userdir.conf /etc/apache/extra/httpd-vhosts.conf /etc/apache/extra/proxy-html.conf /etc/apache/httpd.conf /etc/apache/magic /etc/apache/mime.types