My domain is: test-gedfe.mustweb.it
I ran this command: certbot --apache
It produced this output:
My web server is (include version): Apache/2.4.58 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 24.04.2 LTS
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know): yes
When I run certbot --apache i obtain this:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
1: test-gedfe.mustweb.it
2: test-gedfe-ap.mustweb.it
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for test-gedfe.mustweb.it
Performing the following challenges:
http-01 challenge for test-gedfe.mustweb.it
Waiting for verification...
Challenge failed for domain test-gedfe.mustweb.it
http-01 challenge for test-gedfe.mustweb.it
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: test-gedfe.mustweb.it
Type: connection
Detail: 81.126.128.73: Fetching http://test-gedfe.mustweb.it/.well-known/acme-challenge/nLaZWjEs_6y57USXAXVLZMykZ5PJFUlnvTgPqmYBIDQ: Timeout during connect (likely firewall problem)
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Cleaning up challenges
Some challenges have failed.
I can run http://test-gedfe.mustweb.it/ with success.
this is the last part of letsencrypt log:
2025-07-04 08:00:14,643:DEBUG:acme.client:Storing nonce: E9LE5BwEA0sm8ZlJflragDnJ46EHmueTKnd1uJvxIqy8isOC1uY
2025-07-04 08:00:14,644:INFO:certbot._internal.auth_handler:Challenge failed for domain test-gedfe.mustweb.it
2025-07-04 08:00:14,644:INFO:certbot._internal.auth_handler:http-01 challenge for test-gedfe.mustweb.it
2025-07-04 08:00:14,644:DEBUG:certbot._internal.display.obj:Notifying user:
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: test-gedfe.mustweb.it
Type: connection
Detail: 81.126.128.73: Fetching http://test-gedfe.mustweb.it/.well-known/acme-challenge/R8IIEgeCyWft-5D7Si-d4k2TI2qtVH1yw4uiT3HkvYU: Timeout during connect (likely firewall problem)
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
2025-07-04 08:00:14,644:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 108, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, max_time_mins, best_effort)
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 212, in _poll_authorizations
raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.
2025-07-04 08:00:14,644:DEBUG:certbot._internal.error_handler:Calling registered functions
2025-07-04 08:00:14,644:INFO:certbot._internal.auth_handler:Cleaning up challenges
2025-07-04 08:00:14,739:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 33, in
sys.exit(load_entry_point('certbot==2.9.0', 'console_scripts', 'certbot')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1894, in main
return config.func(config, plugins)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1450, in run
new_lineage = _get_and_save_cert(le_client, config, domains,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 143, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 517, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 428, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 496, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, self.config, best_effort)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 108, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, max_time_mins, best_effort)
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 212, in _poll_authorizations
raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.
2025-07-04 08:00:14,741:ERROR:certbot._internal.log:Some challenges have failed.