ok maybe this letsencrypt.log
can show something interesting... some python stuff I do not yet understand... due to my very basic knowledge.
2024-07-10 17:23:59,915:DEBUG:certbot._internal.main:certbot version: 2.11.0
2024-07-10 17:23:59,915:DEBUG:certbot._internal.main:Location of certbot entry point: /bin/certbot
2024-07-10 17:23:59,915:DEBUG:certbot._internal.main:Arguments: []
2024-07-10 17:23:59,915:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2024-07-10 17:23:59,920:DEBUG:certbot._internal.log:Root logging level set at 30
2024-07-10 17:23:59,920:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None
2024-07-10 17:24:00,004:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.59
2024-07-10 17:24:00,246:WARNING:certbot_apache._internal.configurator:ssl_module is statically linked but --apache-bin is missing; not disabling session tickets.
2024-07-10 17:24:00,246: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_suse.OpenSUSEConfigurator object at 0x7f77c712ab70>
Prep: True
2024-07-10 17:24:00,247:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot_apache._internal.override_suse.OpenSUSEConfigurator object at 0x7f77c712ab70> and installer <certbot_apache._internal.override_suse.OpenSUSEConfigurator object at 0x7f77c712ab70>
2024-07-10 17:24:00,247:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator apache, Installer apache
2024-07-10 17:24:00,275: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/1828379537', new_authzr_uri=None, terms_of_service=None), 03554a6e37fb98a4c39f1a6f1e14f5d8, Meta(creation_dt=datetime.datetime(2024, 7, 9, 21, 56, 34, tzinfo=<UTC>), creation_host='suseone.rogezz', register_to_eff=None))>
2024-07-10 17:24:00,276:DEBUG:acme.client:Sending GET request to https://acme-v02.api.letsencrypt.org/directory.
2024-07-10 17:24:00,276:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org:443
2024-07-10 17:24:00,674:DEBUG:urllib3.connectionpool:https://acme-v02.api.letsencrypt.org:443 "GET /directory HTTP/1.1" 200 746
2024-07-10 17:24:00,675:DEBUG:acme.client:Received response:
HTTP 200
Server: nginx
Date: Wed, 10 Jul 2024 15:24:00 GMT
Content-Type: application/json
Content-Length: 746
Connection: keep-alive
Cache-Control: public, max-age=0, no-cache
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
{
"dwDocz1LU7c": "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.4-April-3-2024.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-03/renewalInfo",
"revokeCert": "https://acme-v02.api.letsencrypt.org/acme/revoke-cert"
}
2024-07-10 17:24:06,739:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): e6.o.lencr.org:80
2024-07-10 17:24:06,934:DEBUG:urllib3.connectionpool:http://e6.o.lencr.org:80 "POST / HTTP/1.1" 200 345
2024-07-10 17:24:06,936:DEBUG:certbot.ocsp:OCSP response for certificate /etc/letsencrypt/archive/wolk.rogez.be/cert2.pem is signed by the certificate's issuer.
2024-07-10 17:24:06,940:DEBUG:certbot.ocsp:OCSP certificate status for /etc/letsencrypt/archive/wolk.rogez.be/cert2.pem is: OCSPCertStatus.GOOD
2024-07-10 17:24:06,946:DEBUG:certbot._internal.display.obj:Notifying user: Certificate not yet due for renewal
2024-07-10 17:24:11,258:INFO:certbot._internal.main:Keeping the existing certificate
2024-07-10 17:24:11,258:DEBUG:certbot._internal.display.obj:Notifying user: Deploying certificate
2024-07-10 17:24:11,297:DEBUG:certbot.reverter:Creating backup of /etc/apache2/httpd.conf
2024-07-10 17:24:11,297:DEBUG:certbot.reverter:Creating backup of /etc/apache2/vhosts.d/rogezcloud.conf
2024-07-10 17:24:11,354:INFO:certbot_apache._internal.configurator:Deploying Certificate to VirtualHost /etc/apache2/vhosts.d/rogezcloud.conf
2024-07-10 17:24:11,355:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/certbot/_internal/client.py", line 657, in deploy_certificate
self.installer.deploy_cert(
File "/usr/lib/python3.12/site-packages/certbot_apache/_internal/configurator.py", line 530, in deploy_cert
self._deploy_cert(vhost, cert_path, key_path, chain_path, fullchain_path)
File "/usr/lib/python3.12/site-packages/certbot_apache/_internal/configurator.py", line 689, in _deploy_cert
self.parser.aug.set(path["cert_path"][-1], fullchain_path)
~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
2024-07-10 17:24:11,355:DEBUG:certbot._internal.error_handler:Calling registered functions
2024-07-10 17:24:11,360:DEBUG:certbot._internal.display.obj:Notifying user: Could not install certificate
2024-07-10 17:24:11,360:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/bin/certbot", line 33, in <module>
sys.exit(load_entry_point('certbot==2.11.0', 'console_scripts', 'certbot')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/certbot/_internal/main.py", line 1894, in main
return config.func(config, plugins)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/certbot/_internal/main.py", line 1464, in run
_install_cert(config, le_client, domains, new_lineage)
File "/usr/lib/python3.12/site-packages/certbot/_internal/main.py", line 1058, in _install_cert
le_client.deploy_certificate(domains, path_provider.key_path, path_provider.cert_path,
File "/usr/lib/python3.12/site-packages/certbot/_internal/client.py", line 657, in deploy_certificate
self.installer.deploy_cert(
File "/usr/lib/python3.12/site-packages/certbot_apache/_internal/configurator.py", line 530, in deploy_cert
self._deploy_cert(vhost, cert_path, key_path, chain_path, fullchain_path)
File "/usr/lib/python3.12/site-packages/certbot_apache/_internal/configurator.py", line 689, in _deploy_cert
self.parser.aug.set(path["cert_path"][-1], fullchain_path)
~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
2024-07-10 17:24:11,361:ERROR:certbot._internal.log:An unexpected error occurred:
2024-07-10 17:24:11,361:ERROR:certbot._internal.log:IndexError: list index out of range
then here is the unsuspected output of: sudo apache2ctl -t -D DUMP_VHOSTS
:
apache2ctl: command not found
I read further here:
https://doc.opensuse.org/documentation/leap/reference/html/book-reference/cha-apache2.html
and tried the suggested command for opensuse: apachectl -t -D DUMP_VHOSTS
which outputted:
VirtualHost configuration:
no nothing more...
So I tried the command: apachectl -S
which outputted:
VirtualHost configuration:
ServerRoot: "/srv/www"
Main DocumentRoot: "/srv/www/htdocs"
Main ErrorLog: "/var/log/apache2/error_log"
Mutex ssl-stapling-refresh: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/run/" mechanism=default
Mutex mpm-accept: using_defaults
PidFile: "/run/httpd.pid"
Define: SYSCONFIG
Define: phpMyAdmin
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="wwwrun" id=454
Group: name="www" id=455
Hope you get any wiser with this?
My guess is some required component for SSL is not installed / enabled. And, that this causes Apache start to fail when you try to enable a VirtualHost for port 443 (and ssl).
Yes maybe, if any advice witch one..?
I will follow up, thanks a million times.