Hi, Newbie here. I have a nextcloud cloud storage and would like to use letsencrypt certificate. I was able to install it but couldn't renew it and with the output below. I believe because of this error, I couldn't get auto-renew certificates. Please teach me step by step how to solve my issue. Thanks in advance.
~$ sudo certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/www.lcpis.cloud.conf
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate for www.lcpis.cloud
Performing the following challenges:
http-01 challenge for www.lcpis.cloud
Waiting for verification...
Challenge failed for domain www.lcpis.cloud
http-01 challenge for www.lcpis.cloud
Cleaning up challenges
Failed to renew certificate www.lcpis.cloud with error: Some challenges have failed.
All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/www.lcpis.cloud/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: www.lcpis.cloud
Type: unauthorized
Detail: Invalid response from
http://www.lcpis.cloud/.well-known/acme-challenge/jBOF5UxIev11Wbc9IlmOr9hhyTMTCOOnqffmTmJlMms
[xxx.xxx.xxx.xxx]: "\n\n400 Bad
Request\n\nBad Request</h1"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.