Site SSL Good, Renewal Fails

My domain is: brandwares.com

I ran this command: /opt/local/bin/certbot renew --quiet (through LaunchDeamon script)

It produced this output:

2023-01-21 15:24:00,041:DEBUG:certbot._internal.main:certbot version: 1.12.0
2023-01-21 15:24:00,042:DEBUG:certbot._internal.main:Location of certbot entry point: /opt/local/bin/certbot
2023-01-21 15:24:00,042:DEBUG:certbot._internal.main:Arguments: ['--quiet']
2023-01-21 15:24:00,043:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2023-01-21 15:24:00,247:DEBUG:certbot._internal.log:Root logging level set at 30
2023-01-21 15:24:00,247:INFO:certbot._internal.log:Saving debug log to /opt/local/var/log/letsencrypt/letsencrypt.log
2023-01-21 15:24:00,354:DEBUG:certbot.display.util:Notifying user: Processing /opt/local/etc/letsencrypt/renewal/brandwares.com-0001.conf
2023-01-21 15:24:00,404:DEBUG:certbot._internal.plugins.selection:Requested authenticator <certbot._internal.cli.cli_utils._Default object at 0x10f83af50> and installer <certbot._internal.cli.cli_utils._Default object at 0x10f83af50>
2023-01-21 15:24:00,459:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): r3.o.lencr.org:80
2023-01-21 15:24:00,461:INFO:certbot.ocsp:OCSP check failed for /opt/local/etc/letsencrypt/archive/brandwares.com-0001/cert4.pem (are we offline?)
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1277, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1323, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1272, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1032, in _send_output
    self.send(msg)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 972, in send
    self.connect()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x10f801890>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/util/retry.py", line 573, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='r3.o.lencr.org', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10f801890>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/ocsp.py", line 188, in _check_ocsp_cryptography
    timeout=timeout)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='r3.o.lencr.org', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10f801890>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
2023-01-21 15:24:00,472:DEBUG:certbot._internal.storage:Should renew, less than 30 days before certificate expiry 2023-01-29 17:50:55 UTC.
2023-01-21 15:24:00,472:INFO:certbot._internal.renewal:Cert is due for renewal, auto-renewing...
2023-01-21 15:24:00,472:INFO:certbot._internal.renewal:Non-interactive renewal: random delay of 234.1142788607609 seconds
2023-01-21 15:27:54,630:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer None
2023-01-21 15:27:55,234:ERROR:certbot.util:Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,235:DEBUG:certbot._internal.plugins.disco:Misconfigured PluginEntryPoint#apache: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2433, in config_test
    util.run_script(self.option("conftest_cmd"))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/util.py", line 116, in run_script
    raise errors.SubprocessError(msg)
certbot.errors.SubprocessError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/disco.py", line 157, in prepare
    self._initialized.prepare()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 320, in prepare
    self.config_test()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2435, in config_test
    raise errors.MisconfigurationError(str(err))
certbot.errors.MisconfigurationError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,283:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_darwin.DarwinConfigurator object at 0x10f842450>
Prep: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,284:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer None
2023-01-21 15:27:55,284:INFO:certbot._internal.main:Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:55,284:ERROR:certbot._internal.renewal:Failed to renew certificate brandwares.com-0001 with error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:55,287:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/renewal.py", line 485, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/main.py", line 1228, in renew_cert
    installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 235, in choose_configurator_plugins
    diagnose_configurator_problem("authenticator", req_auth, plugins)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 339, in diagnose_configurator_problem
    raise errors.PluginSelectionError(msg)
certbot.errors.PluginSelectionError: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")

2023-01-21 15:27:55,288:DEBUG:certbot.display.util:Notifying user: Processing /opt/local/etc/letsencrypt/renewal/brandwares.com.conf
2023-01-21 15:27:55,343:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): r3.o.lencr.org:80
2023-01-21 15:27:55,435:DEBUG:urllib3.connectionpool:http://r3.o.lencr.org:80 "POST / HTTP/1.1" 200 503
2023-01-21 15:27:55,436:DEBUG:certbot.ocsp:OCSP response for certificate /opt/local/etc/letsencrypt/archive/brandwares.com/cert11.pem is signed by the certificate's issuer.
2023-01-21 15:27:55,453:DEBUG:certbot.ocsp:OCSP certificate status for /opt/local/etc/letsencrypt/archive/brandwares.com/cert11.pem is: OCSPCertStatus.GOOD
2023-01-21 15:27:55,454:DEBUG:certbot._internal.storage:Should renew, less than 30 days before certificate expiry 2023-01-29 17:51:03 UTC.
2023-01-21 15:27:55,454:INFO:certbot._internal.renewal:Cert is due for renewal, auto-renewing...
2023-01-21 15:27:55,454:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2023-01-21 15:27:55,539:ERROR:certbot.util:Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,540:DEBUG:certbot._internal.plugins.disco:Misconfigured PluginEntryPoint#apache: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2433, in config_test
    util.run_script(self.option("conftest_cmd"))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/util.py", line 116, in run_script
    raise errors.SubprocessError(msg)
certbot.errors.SubprocessError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/disco.py", line 157, in prepare
    self._initialized.prepare()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 320, in prepare
    self.config_test()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2435, in config_test
    raise errors.MisconfigurationError(str(err))
certbot.errors.MisconfigurationError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,540:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_darwin.DarwinConfigurator object at 0x10f7eef90>
Prep: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,541:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_darwin.DarwinConfigurator object at 0x10f7eef90>
Prep: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,541:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer None
2023-01-21 15:27:55,541:INFO:certbot._internal.main:Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:55,541:ERROR:certbot._internal.renewal:Failed to renew certificate brandwares.com with error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:55,541:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/renewal.py", line 485, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/main.py", line 1228, in renew_cert
    installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 235, in choose_configurator_plugins
    diagnose_configurator_problem("authenticator", req_auth, plugins)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 339, in diagnose_configurator_problem
    raise errors.PluginSelectionError(msg)
certbot.errors.PluginSelectionError: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")

2023-01-21 15:27:55,541:DEBUG:certbot.display.util:Notifying user: Processing /opt/local/etc/letsencrypt/renewal/bw-test.com-0001.conf
2023-01-21 15:27:55,576:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): r3.o.lencr.org:80
2023-01-21 15:27:55,640:DEBUG:urllib3.connectionpool:http://r3.o.lencr.org:80 "POST / HTTP/1.1" 200 503
2023-01-21 15:27:55,641:DEBUG:certbot.ocsp:OCSP response for certificate /opt/local/etc/letsencrypt/archive/bw-test.com-0001/cert4.pem is signed by the certificate's issuer.
2023-01-21 15:27:55,642:DEBUG:certbot.ocsp:OCSP certificate status for /opt/local/etc/letsencrypt/archive/bw-test.com-0001/cert4.pem is: OCSPCertStatus.GOOD
2023-01-21 15:27:55,643:DEBUG:certbot._internal.storage:Should renew, less than 30 days before certificate expiry 2023-01-29 17:51:10 UTC.
2023-01-21 15:27:55,643:INFO:certbot._internal.renewal:Cert is due for renewal, auto-renewing...
2023-01-21 15:27:55,643:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer None
2023-01-21 15:27:55,766:ERROR:certbot.util:Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,767:DEBUG:certbot._internal.plugins.disco:Misconfigured PluginEntryPoint#apache: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2433, in config_test
    util.run_script(self.option("conftest_cmd"))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/util.py", line 116, in run_script
    raise errors.SubprocessError(msg)
certbot.errors.SubprocessError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/disco.py", line 157, in prepare
    self._initialized.prepare()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 320, in prepare
    self.config_test()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2435, in config_test
    raise errors.MisconfigurationError(str(err))
certbot.errors.MisconfigurationError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,767:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_darwin.DarwinConfigurator object at 0x10f7ff4d0>
Prep: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,767:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer None
2023-01-21 15:27:55,767:INFO:certbot._internal.main:Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:55,768:ERROR:certbot._internal.renewal:Failed to renew certificate bw-test.com-0001 with error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:55,768:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/renewal.py", line 485, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/main.py", line 1228, in renew_cert
    installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 235, in choose_configurator_plugins
    diagnose_configurator_problem("authenticator", req_auth, plugins)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 339, in diagnose_configurator_problem
    raise errors.PluginSelectionError(msg)
certbot.errors.PluginSelectionError: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")

2023-01-21 15:27:55,768:DEBUG:certbot.display.util:Notifying user: Processing /opt/local/etc/letsencrypt/renewal/bw-test.com.conf
2023-01-21 15:27:55,796:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): r3.o.lencr.org:80
2023-01-21 15:27:55,865:DEBUG:urllib3.connectionpool:http://r3.o.lencr.org:80 "POST / HTTP/1.1" 200 503
2023-01-21 15:27:55,866:DEBUG:certbot.ocsp:OCSP response for certificate /opt/local/etc/letsencrypt/archive/bw-test.com/cert7.pem is signed by the certificate's issuer.
2023-01-21 15:27:55,867:DEBUG:certbot.ocsp:OCSP certificate status for /opt/local/etc/letsencrypt/archive/bw-test.com/cert7.pem is: OCSPCertStatus.GOOD
2023-01-21 15:27:55,868:DEBUG:certbot._internal.storage:Should renew, less than 30 days before certificate expiry 2023-01-29 17:51:19 UTC.
2023-01-21 15:27:55,868:INFO:certbot._internal.renewal:Cert is due for renewal, auto-renewing...
2023-01-21 15:27:55,868:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2023-01-21 15:27:55,969:ERROR:certbot.util:Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,969:DEBUG:certbot._internal.plugins.disco:Misconfigured PluginEntryPoint#apache: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2433, in config_test
    util.run_script(self.option("conftest_cmd"))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/util.py", line 116, in run_script
    raise errors.SubprocessError(msg)
certbot.errors.SubprocessError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/disco.py", line 157, in prepare
    self._initialized.prepare()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 320, in prepare
    self.config_test()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2435, in config_test
    raise errors.MisconfigurationError(str(err))
certbot.errors.MisconfigurationError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,970:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_darwin.DarwinConfigurator object at 0x110230c90>
Prep: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,970:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_darwin.DarwinConfigurator object at 0x110230c90>
Prep: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:55,971:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer None
2023-01-21 15:27:55,971:INFO:certbot._internal.main:Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:55,971:ERROR:certbot._internal.renewal:Failed to renew certificate bw-test.com with error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:55,971:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/renewal.py", line 485, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/main.py", line 1228, in renew_cert
    installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 235, in choose_configurator_plugins
    diagnose_configurator_problem("authenticator", req_auth, plugins)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 339, in diagnose_configurator_problem
    raise errors.PluginSelectionError(msg)
certbot.errors.PluginSelectionError: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")

2023-01-21 15:27:55,971:DEBUG:certbot.display.util:Notifying user: Processing /opt/local/etc/letsencrypt/renewal/fineryandfrill.com-0001.conf
2023-01-21 15:27:56,000:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): r3.o.lencr.org:80
2023-01-21 15:27:56,107:DEBUG:urllib3.connectionpool:http://r3.o.lencr.org:80 "POST / HTTP/1.1" 200 503
2023-01-21 15:27:56,108:DEBUG:certbot.ocsp:OCSP response for certificate /opt/local/etc/letsencrypt/archive/fineryandfrill.com-0001/cert4.pem is signed by the certificate's issuer.
2023-01-21 15:27:56,109:DEBUG:certbot.ocsp:OCSP certificate status for /opt/local/etc/letsencrypt/archive/fineryandfrill.com-0001/cert4.pem is: OCSPCertStatus.GOOD
2023-01-21 15:27:56,110:DEBUG:certbot._internal.storage:Should renew, less than 30 days before certificate expiry 2023-01-29 17:51:30 UTC.
2023-01-21 15:27:56,110:INFO:certbot._internal.renewal:Cert is due for renewal, auto-renewing...
2023-01-21 15:27:56,110:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer None
2023-01-21 15:27:56,233:ERROR:certbot.util:Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:56,233:DEBUG:certbot._internal.plugins.disco:Misconfigured PluginEntryPoint#apache: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2433, in config_test
    util.run_script(self.option("conftest_cmd"))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/util.py", line 116, in run_script
    raise errors.SubprocessError(msg)
certbot.errors.SubprocessError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/disco.py", line 157, in prepare
    self._initialized.prepare()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 320, in prepare
    self.config_test()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2435, in config_test
    raise errors.MisconfigurationError(str(err))
certbot.errors.MisconfigurationError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:56,233:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_darwin.DarwinConfigurator object at 0x10f801850>
Prep: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:56,234:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer None
2023-01-21 15:27:56,234:INFO:certbot._internal.main:Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:56,234:ERROR:certbot._internal.renewal:Failed to renew certificate fineryandfrill.com-0001 with error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:56,234:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/renewal.py", line 485, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/main.py", line 1228, in renew_cert
    installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 235, in choose_configurator_plugins
    diagnose_configurator_problem("authenticator", req_auth, plugins)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 339, in diagnose_configurator_problem
    raise errors.PluginSelectionError(msg)
certbot.errors.PluginSelectionError: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")

2023-01-21 15:27:56,234:DEBUG:certbot.display.util:Notifying user: Processing /opt/local/etc/letsencrypt/renewal/fineryandfrill.com.conf
2023-01-21 15:27:56,263:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): r3.o.lencr.org:80
2023-01-21 15:27:56,352:DEBUG:urllib3.connectionpool:http://r3.o.lencr.org:80 "POST / HTTP/1.1" 200 503
2023-01-21 15:27:56,353:DEBUG:certbot.ocsp:OCSP response for certificate /opt/local/etc/letsencrypt/archive/fineryandfrill.com/cert10.pem is signed by the certificate's issuer.
2023-01-21 15:27:56,354:DEBUG:certbot.ocsp:OCSP certificate status for /opt/local/etc/letsencrypt/archive/fineryandfrill.com/cert10.pem is: OCSPCertStatus.GOOD
2023-01-21 15:27:56,355:DEBUG:certbot._internal.storage:Should renew, less than 30 days before certificate expiry 2023-01-29 17:51:41 UTC.
2023-01-21 15:27:56,355:INFO:certbot._internal.renewal:Cert is due for renewal, auto-renewing...
2023-01-21 15:27:56,356:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2023-01-21 15:27:56,477:ERROR:certbot.util:Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:56,478:DEBUG:certbot._internal.plugins.disco:Misconfigured PluginEntryPoint#apache: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2433, in config_test
    util.run_script(self.option("conftest_cmd"))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/util.py", line 116, in run_script
    raise errors.SubprocessError(msg)
certbot.errors.SubprocessError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/disco.py", line 157, in prepare
    self._initialized.prepare()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 320, in prepare
    self.config_test()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot_apache/_internal/configurator.py", line 2435, in config_test
    raise errors.MisconfigurationError(str(err))
certbot.errors.MisconfigurationError: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:56,478:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_darwin.DarwinConfigurator object at 0x110213950>
Prep: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:56,479:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_darwin.DarwinConfigurator object at 0x110213950>
Prep: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-21 15:27:56,479:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer None
2023-01-21 15:27:56,479:INFO:certbot._internal.main:Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:56,479:ERROR:certbot._internal.renewal:Failed to renew certificate fineryandfrill.com with error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")
2023-01-21 15:27:56,480:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/renewal.py", line 485, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/main.py", line 1228, in renew_cert
    installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 235, in choose_configurator_plugins
    diagnose_configurator_problem("authenticator", req_auth, plugins)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/plugins/selection.py", line 339, in diagnose_configurator_problem
    raise errors.PluginSelectionError(msg)
certbot.errors.PluginSelectionError: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nAH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:\nInvalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration\n")

2023-01-21 15:27:56,480:DEBUG:certbot.display.util:Notifying user: 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2023-01-21 15:27:56,480:ERROR:certbot._internal.renewal:All renewals failed. The following certificates could not be renewed:
2023-01-21 15:27:56,480:ERROR:certbot._internal.renewal:  /opt/local/etc/letsencrypt/live/brandwares.com-0001/fullchain.pem (failure)
  /opt/local/etc/letsencrypt/live/brandwares.com/fullchain.pem (failure)
  /opt/local/etc/letsencrypt/live/bw-test.com-0001/fullchain.pem (failure)
  /opt/local/etc/letsencrypt/live/bw-test.com/fullchain.pem (failure)
  /opt/local/etc/letsencrypt/live/fineryandfrill.com-0001/fullchain.pem (failure)
  /opt/local/etc/letsencrypt/live/fineryandfrill.com/fullchain.pem (failure)
2023-01-21 15:27:56,480:DEBUG:certbot.display.util:Notifying user: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2023-01-21 15:27:56,480:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/opt/local/bin/certbot", line 33, in <module>
    sys.exit(load_entry_point('certbot==1.12.0', 'console_scripts', 'certbot')())
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/main.py", line 15, in main
    return internal_main.main(cli_args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/main.py", line 1413, in main
    return config.func(config, plugins)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/main.py", line 1317, in renew
    renewal.handle_renewal_request(config)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certbot/_internal/renewal.py", line 511, in handle_renewal_request
    len(renew_failures), len(parse_failures)))
certbot.errors.Error: 6 renew failure(s), 0 parse failure(s)
2023-01-21 15:27:56,502:ERROR:certbot._internal.log:6 renew failure(s), 0 parse failure(s)

My web server is (include version): Apache 2.4.46_1

The operating system my web server runs on is (include version): macOS 10.14.6 (Mojave)

My hosting provider, if applicable, is: self-hosted

I can login to a root shell on my machine (yes or no, or I don't know): Yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): No

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 1.12.0

SSL is running with no problems. It's only when running the renewal script that certbot can't find SSLEngine and can't run apachectl configtest. Running apache configtest manually simply returns "OK". Those errors are repeated so often in the log, I figure they must have something to do with the renewal script eventually giving up without renewing.

Well, that's odd, because Certbot runs exactly that command.

I wonder if it running through launchd has something to do with it.

If you try a dry-run renewal via Terminal, does it exhibit the same problem?

sudo certbot renew --dry-run
3 Likes
sudo certbot renew --dry-run

That command raises no errors. I have no problems renewing manually. It's only an issue when the launchdaemon runs.

Well, I was able to reproduce the issue momentarily: Apache plugin crashes with module errors on default config Apache, macOS Ventura 13.1 · Issue #9538 · certbot/certbot · GitHub.

It's not related to launchd.

Unfortunately after applying a workaround, I can't make the issue appear again. I'm not sure what the actual cause is.

The workaround that allowed me to proceed was to take these two lines in /etc/apache2/httpd.conf, and to move them towards the top of the file, in uncommented form:

LoadModule ssl_module libexec/apache2/mod_ssl.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so

Certbot is supposed to enable the required modules for you, it seems like a legitimate bug.

4 Likes

Supplemental DNS information
Zonemaster is showing some oddities https://zonemaster.net/en/result/65038a25a049301d
brandwares.com | DNSViz

1 Like

I moved those commands up, made the script run, moved them to the very top, made the script run again. No improvement, the error log looks the same as before.

I use which apachectl to check, it's aimed at the correct version.

1 Like

You still get the exact error Invalid command 'SSLEngine', even after having moved the LoadModule ssl_module to the top of httpd.conf?

3 Likes

Yes, I get that message. Here are the first 2 of many appearances in the most recent log:

2023-01-22 19:08:11,818:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer None
2023-01-22 19:08:14,021:ERROR:certbot.util:Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

2023-01-22 19:08:14,022:DEBUG:certbot._internal.plugins.disco:Misconfigured PluginEntryPoint#apache: Error while running apachectl configtest.

AH00526: Syntax error on line 7 of /opt/local/etc/letsencrypt/options-ssl-apache.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.