Hello! i have a nextcloud server that i am trying to get updated to the newest release. i have worked through various updates and now i am trying to get a certificate by using 'sudo certbot --apache'. my output is posted below. i am not sure how to make the /.well-known/acme-challenge/ folder visible for the authentication. thank you!
My domain is: snstegalmjlnext.ddns.net
I ran this command: sudo certbot --apache
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
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 snstegalmjlnext.ddns.net
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: snstegalmjlnext.ddns.net
Type: unauthorized
Detail: 192.230.211.66: Invalid response from http://snstegalmjlnext.ddns.net/.well-known/acme-challenge/YUz3PA-1grAmo0RtOSrlb85mcILgFI6x9MimbUQ-I9U: 404
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.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My web server is (include version): Nextcloud 20.0.14
The operating system my web server runs on is (include version): ubuntu 24.04.1 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
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 2.11.0