Hello,
3 months ago, I configured our company cloud: qnap / ubuntu 22 (in qnap's container) / apache2 / ownCloud. I used Let's Encrypt certificate in apache2 config files to start https service. Everything worked well till the beginning of May, when your certificate expired. I need help to renew the certificate and configure it to cyclic renewing. I know that there are tons of articles in the internet, how to do this. I tried many things, without success.
During my trials, I created the folder:
/var/www/letsencrypt/.well-known/acme-challenge/
and also configured this directory in Apache site config file (/etc/apache2/sites-available/owncloud4.conf) adding below:
Alias "/.well-known/acme-challenge/" "/var/www/letsencrypt/.well-known/acme-challenge/"
<Directory "/var/www/letsencrypt/.well-known/acme-challenge/">
Options None
AllowOverride None
ForceType text/plain
RedirectMatch 404 "^(?!/\.well-known/acme-challenge/[\w-]{43}$)"
</Directory>
I added above outside all "VirtualHost"" sections (I have two such sections: regarding 80 and 443 port).
Please help! Thank you in advance!
My domain is: cloud.energoster.com.pl
I ran this command:
./renew.sh (from /etc/letsencrypt/ directory)
and also
certbot certonly (from any directory)
It produced this output:
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: cloud.energoster.com.pl
Type: unauthorized
Detail: 78.9.96.130: Invalid response from http://cloud.energoster.com.pl/.well-known/acme-challenge/HynaH1G7SjAHUxDqc5CIsrc1-pyazyZ6iCT77TZOe9A: 404
My web server is (include version):
Apache/2.4.52 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 22.04.1 LTS
(uname -a produces below:
Linux ubuntu-2 5.10.60-qnap #1 SMP Fri Apr 21 01:51:27 CST 2023 x86_64 x86_64 x86_64 GNU/Linux)
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 1.21.0