Re: certbot looking in the wrong directory

From: Michael Sierchio <kudzu_at_tenebras.com>
Date: Sun, 23 Apr 2023 14:12:59 UTC
On Sun, Apr 23, 2023 at 10:03 AM Gerard E. Seibert <jerry@seibercom.net>
wrote:

> certbot 2.4.0
> FreeBSD 13.2-RELEASE
>
> After recently updating to FreeBSD 13.2, certbot has stopped working
> correctly. I can supply the entire log file; however, I believe this
> might be the pertinent part:
>
> FileNotFoundError: [Errno 2] No such file or directory:
> '/usr/local/etc/apache24/libexec/apache24/mod_ssl.so'
> 2023-04-23
> 08:28:29,481:WARNING:certbot_apache._internal.configurator:Unable to read
> ssl_module file; not disabling session tickets.
> 2023-04-23 08:28:29,482:DEBUG:certbot._internal.plugins.selection:Single
> candidate plugin: * apache
>
> The correct path would be: /usr/local/libexec/apache24/mod_ssl.so
>
> How can I correct this problem? I have posed on the 'letencrypt' forum;
> hopwever, I have not received back a response as of yet.
>

You may complain of the inelegance of this "solution" while you search for
the config file:

mkdir -p /usr/local/etc/apache24/libexec
ln -s /usr/local/libexec/apache24 /usr/local/etc/apache24/libexec