I am running a Nextcloud server with Apache2 on Raspberry Pi 3 Debian 9. I currently have a self-signed SSL certificate but wanted to make a switch to Let’s Encrypt SSL certificate.
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. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
I’ve seen many other people with this problem, and I tried fixing it using the suggestions from the community with no luck.
Port 80 is particularly useful if you plan to host a website from your own server. In order to activate Port 80 you must subscribe to Optimum services 60 and above.
YOU may be able to access your server on 80 (because you are inside your own network), but others definitely cannot.
I would clarify this with your ISP.
If it is the case that port 80 is blocked by your ISP, and you cannot disable the block, then you can't use the HTTP-based challenge and will need to use the DNS-based challenge instead.
The link to the Optimum site I posted shows you how to disable the port blocking if you are on the right kind of plan. Maybe try that first if you are eligible.
For DNS-based challenge, this depends on who your DNS host is (I am not sure who e.g.ns1.dnsowl.com is run by).
I am not aware of any great guides for the DNS challenge with Certbot .
You can manually go through the DNS validation process like:
It worked! Partially though. I see the SSL certificate on kdrive.cc, however www.kdrive.cc is still “insecure”.
I ran the below command for kdrive.cc first, and when it was successful, I ran it for www.kdrive.cc which returned a different TXT record. I made the changes in TXT record on my DNS host, and waited enough time to propagate.
sudo ./certbot-auto --installer apache --manual --preferred-challenges dns -d kdrive.cc
sudo ./certbot-auto --installer apache --manual --preferred-challenges dns -d www.kdrive.cc
Below is the output I got.
…
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.kdrive.cc (dns-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Incorrect TXT record “redacted” found at _acme-challenge.www.kdrive.cc
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: www.kdrive.cc
Type: unauthorized
Detail: Incorrect TXT record
"redacted" found at
_acme-challenge.www.kdrive.cc
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.