Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:sens.wtf
I ran this command: sudo certbot --apache -v
It produced this output:
2024-12-21 20:16:44,564:DEBUG:certbot._internal.display.obj:Notifying user:
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: sens.wtf
Type: unauthorized
Detail: [redacted ip]: Invalid response from http://sens.wtf/.well-known/acme-challenge/2PggW3Ktc2xCVBQq87hBKkcwuqOn5oSXMdc2ZME0MDM: 403
Domain: www.sens.wtf
Type: unauthorized
Detail: [redacted ip]: Invalid response from http://www.sens.wtf/.well-known/acme-challenge/IqVuY72GhwzYJjJt8k-TOTBNPzHVCvC72xHPXm9tFVQ: 403
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.
2024-12-21 20:16:44,568:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 90, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, best_effort)
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 178, in _poll_authorizations
raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.
2024-12-21 20:16:44,568:DEBUG:certbot._internal.error_handler:Calling registered functions
2024-12-21 20:16:44,569:INFO:certbot._internal.auth_handler:Cleaning up challenges
2024-12-21 20:16:45,032:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 33, in <module>
sys.exit(load_entry_point('certbot==1.21.0', 'console_scripts', 'certbot')())
File "/usr/lib/python3/dist-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1574, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1287, in run
new_lineage = _get_and_save_cert(le_client, config, domains,
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 133, 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 459, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 389, 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 439, 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 90, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, best_effort)
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 178, in _poll_authorizations
raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.
2024-12-21 20:16:45,041:ERROR:certbot._internal.log:Some challenges have failed.
My web server is (include version): Apache/2.4.52
The operating system my web server runs on is (include version):
Ubuntu 22.04 LTS Server with USG profile (cis_level1_server)
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): certbot 1.21.0
Hello friends!
I suspect this is because of the overly restrictive permissions set by the USG profile.
When I try to create a file in my /var/www/sens.wtf/
directory.
(ex. sudo touch /var/www/sens.wtf/test.html
)
I also get a 403 error when visiting http://sens.wtf/test.html
File: /var/www/sens.wtf/test.html
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 1dh/29d Inode: 224041 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 33/www-data) Gid: ( 33/www-data)
Access: 2024-12-21 19:12:12.940870038 -0500
Modify: 2024-12-21 19:12:12.940870038 -0500
Change: 2024-12-21 19:18:08.078956903 -0500
Birth: 2024-12-21 19:12:12.940870038 -0500
I have tried running the command umask 0022
to no avail.
Any ideas?