Hello,
I have a running website on my ubuntu server, with Apache. But when I try to get a Let's Encrypt Certificate, I always ran under an error. My different ports are open:
sudo ufw status
Status: active
To Action From
80 ALLOW Anywhere
443 ALLOW Anywhere
80 (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
My domain is:
cloud.antoinestocker.ch
I ran this command:
sudo certbot certonly --webroot -w /var/www/owncloud -d cloud.antoinestocker.ch
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for cloud.antoinestocker.ch
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: cloud.antoinestocker.ch
Type: unauthorized
Detail: 178.192.222.220: Invalid response from http://cloud.antoinestocker.ch/.well-known/acme-challenge/PJZiPtDTTmmZvhzZU6-w3qqw1-6iTOLEFQoTFoIQetA: 404
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded 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):
Apache
The operating system my web server runs on is (include version):
Ubuntu 22.04
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): 1.21.0