Thanks very much Rudy.
Sorry for leaving out this detail - I'm not very knowledgeable in this area
2024-03-19 10:02:51,070:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2024-03-19 10:02:51,155:DEBUG:certbot._internal.main:certbot version: 2.9.0
2024-03-19 10:02:51,156:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/3643/bin/certbot
2024-03-19 10:02:51,156:DEBUG:certbot._internal.main:Arguments: ['--apache', '--preconfigured-renewal']
2024-03-19 10:02:51,156:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2024-03-19 10:02:51,165:DEBUG:certbot._internal.log:Root logging level set at 30
2024-03-19 10:02:51,165:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2024-03-19 10:02:51,239:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.57
2024-03-19 10:02:51,395:WARNING:certbot_apache._internal.configurator:Could not find ssl_module; not disabling session tickets.
2024-03-19 10:02:51,396:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: Authenticator, Installer, Plugin
Entry point: EntryPoint(name='apache', value='certbot_apache._internal.entrypoint:ENTRYPOINT', group='certbot.plugins')
Initialized: <certbot_apache._internal.override_fedora.FedoraConfigurator object at 0x7f2419eacb50>
Prep: True
2024-03-19 10:02:51,396:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot_apache._internal.override_fedora.FedoraConfigurator object at 0x7f2419eacb50> and installer <certbot_apache._internal.override_fedora.FedoraConfigurator object at 0x7f2419eacb50>
2024-03-19 10:02:51,396:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator apache, Installer apache
2024-03-19 10:02:51,439:DEBUG:certbot._internal.main:Picked account: <Account(RegistrationResource(body=Registration(key=None, contact=(), agreement=None, status=None, terms_of_service_agreed=None, only_return_existing=None, external_account_binding=None), uri='https://acme-v02.api.letsencrypt.org/acme/acct/1622879287', new_authzr_uri=None, terms_of_service=None), 476a3c8664d762837c9fddb6ee092c40, Meta(creation_dt=datetime.datetime(2024, 3, 17, 8, 25, 37, tzinfo=<UTC>), creation_host='obatics.ie', register_to_eff=None))>
2024-03-19 10:02:51,440:DEBUG:acme.client:Sending GET request to https://acme-v02.api.letsencrypt.org/directory.
2024-03-19 10:02:51,441:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org:443
2024-03-19 10:02:51,826:DEBUG:urllib3.connectionpool:https://acme-v02.api.letsencrypt.org:443 "GET /directory HTTP/1.1" 200 752
2024-03-19 10:02:51,827:DEBUG:acme.client:Received response:
HTTP 200
Server: nginx
Date: Tue, 19 Mar 2024 10:02:51 GMT
Content-Type: application/json
Content-Length: 752
Connection: keep-alive
Cache-Control: public, max-age=0, no-cache
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
{
"KJJ99O0qw2Y": "https://community.letsencrypt.org/t/adding-random-entries-to-the-directory/33417",
"keyChange": "https://acme-v02.api.letsencrypt.org/acme/key-change",
"meta": {
"caaIdentities": [
"letsencrypt.org"
],
"termsOfService": "https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf",
"website": "https://letsencrypt.org"
},
"newAccount": "https://acme-v02.api.letsencrypt.org/acme/new-acct",
"newNonce": "https://acme-v02.api.letsencrypt.org/acme/new-nonce",
"newOrder": "https://acme-v02.api.letsencrypt.org/acme/new-order",
"renewalInfo": "https://acme-v02.api.letsencrypt.org/draft-ietf-acme-ari-02/renewalInfo/",
"revokeCert": "https://acme-v02.api.letsencrypt.org/acme/revoke-cert"
}
2024-03-19 10:05:08,145:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/snap/certbot/3643/bin/certbot", line 8, in <module>
sys.exit(main())
File "/var/lib/snapd/snap/certbot/3643/lib/python3.8/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/var/lib/snapd/snap/certbot/3643/lib/python3.8/site-packages/certbot/_internal/main.py", line 1894, in main
return config.func(config, plugins)
File "/var/lib/snapd/snap/certbot/3643/lib/python3.8/site-packages/certbot/_internal/main.py", line 1445, in run
domains, certname = _find_domains_or_certname(config, installer)
File "/var/lib/snapd/snap/certbot/3643/lib/python3.8/site-packages/certbot/_internal/main.py", line 514, in _find_domains_or_certname
raise errors.Error("Please specify --domains, or --installer that "
certbot.errors.Error: Please specify --domains, or --installer that will help in domain names autodiscovery, or --cert-name for an existing certificate name.
2024-03-19 10:05:08,146:ERROR:certbot._internal.log:Please specify --domains, or --installer that will help in domain names autodiscovery, or --cert-name for an existing certificate name.
and for sudo apachectl -t -D DUMP_VHOSTS
I get:
Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
To pass extra arguments to httpd, see the httpd.service(8)
man page.