Operating system: Ubuntu 20.04 LTS
I have recently set up a webserver with Virtualmin, and the only problem I am having at the moment is getting Let’s Encrypt to properly generate SSL certs. Here is the output log for generating certs:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for admin.techokamilabs.com
http-01 challenge for mail.techokamilabs.com
http-01 challenge for techokamilabs.com
http-01 challenge for webmail.techokamilabs.com
http-01 challenge for www.techokamilabs.com
Using the webroot path /home/techokamilabs/public_html for all unmatched domains.
Waiting for verification…
Challenge failed for domain admin.techokamilabs.com
Challenge failed for domain mail.techokamilabs.com
Challenge failed for domain techokamilabs.com
Challenge failed for domain webmail.techokamilabs.com
Challenge failed for domain www.techokamilabs.com
http-01 challenge for admin.techokamilabs.com
http-01 challenge for mail.techokamilabs.com
http-01 challenge for techokamilabs.com
http-01 challenge for webmail.techokamilabs.com
http-01 challenge for www.techokamilabs.com
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: admin.techokamilabs.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for
admin.techokamilabs.com - check that a DNS record exists for this
domainDomain: webmail.techokamilabs.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for
webmail.techokamilabs.com - check that a DNS record exists for this
domain
- The following errors were reported by the server:
Domain: mail.techokamilabs.com
Type: unauthorized
Detail: Invalid response from
http://mail.techokamilabs.com/.well-known/acme-challenge/CQdESXHvZq2kNBkrdgWaehf1sSi10z-Z5nimpMeN3tY
[2600:3c03::f03c:92ff:fe01:c267]: “\n\n404 Not
Found\n\nNot Found
\n<p”Domain: techokamilabs.com
Type: unauthorized
Detail: Invalid response from
http://techokamilabs.com/.well-known/acme-challenge/c_4i2d_kgMwq9xbVTseZmokUVfro-MG0jELpbG_bPDk
[2600:3c03::f03c:92ff:fe01:c267]: “\n\n404 Not
Found\n\nNot Found
\n<p”Domain: www.techokamilabs.com
Type: unauthorized
Detail: Invalid response from
http://www.techokamilabs.com/.well-known/acme-challenge/xppWm8Xicl6o4weZhO9Gms-PNfeGLcIjBpMzYnzkYP8
[2600:3c03::f03c:92ff:fe01:c267]: “\n\n404 Not
Found\n\nNot Found
\n<p”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.
All the subdomains do, in fact, have proper A records configured. What is puzzling to me is that the challenge response does not seem to be properly generated, and instead results in a 404 error??
EDIT: I have attempted to get the certification generated manually, and it still failed with looking for the challenge file, even though I was able to confirm that the file exists in my web browser. Now I’m really confused!