Hey Folks,
Thanks for taking a look at this, as I'm stuck...and being that this is my first time here, a big thanks to all of you that make Virtualmin a great solution!
I have a few virtual servers on one instance of Virtualmin. Let's encrypt cert renewals are working for all but one. The challenge file is created, and I can access from a browser, but the challenge is failing.
The error: Requesting a certificate for tinyoperahouse.com, www.tinyoperahouse.com from Let's Encrypt .. .. request failed : Web-based validation failed : Failed to request certificate :
tinyoperahouse.com challenge did not pass: Invalid response from http://tinyoperahouse.com/.well-known/acme-challenge/yMw0S5qBpOjOgMIFam5... "\n\n \n <meta name=viewport content=\"initial-scale=1, minimum-scale=1, width=dev"
and then it goes on to try DNS which fails (I've always used the web validation.)
Using a browser, I can see the contents of the file, and can see the physical file in its proper location (with full permissions to remove any doubt for now.) /home/bigtiny/domains/bigtiny.biz/public_html/.well-known/acme-challenge.
Just in case it is relevant, this virtual server's domain was renamed at some point, I believe after it was initially created, but before the original Let's Encrypt cert was obtained. I've since installed wordpress on this, but I'm assuming that because I can see the file in a browser, that eliminates any .htaccess concerns???
Webin version: 1.890 Virtualmin version: 6.04 (having also tried 6.03)
Appreciate any help on this,
--Ken
Check your dns records...this problem from my research could be incorrectly configured dns ie wrong records in the zone file.
For example, 1. if you have any ivp6 records, remove them 2. Ensure your ivp 4 record ip address is the external one for your server
https://ajecreative.com.au
Really appreciate the advice adamjedgar. No v6 records found and the internal zone in virtualmin, matches what resolves externally. I don't use the internal zone, it just has what was setup when creating the virtual server.
I can even see the successful GET in the apache logs: 35.207.62.191 - - [10/Oct/2018:23:26:08 +0000] "GET /.well-known/acme-challenge/HelLC6ZB76hY0kwQURpoLKhknivehlZNYPPGbRNrlSw HTTP/1.1" 200 87 "-" "Python-urllib/2.7"
So the challenge file is created, Let's encrypt can retrieve it, But doesn't like what it is finding...I suppose.
Thanks for your help on this as you were (of course) correct....When I went to remove the ipv6 records, I only looked for them within the virtualmin environment and completely failed to understand that the external dns DID had AAAA records. Removed them, and all is well.
Thanks again.
Any other ideas on why the Let's encrypt challenge is failing on this one virtual server?