I ran this command: sudo certbot -d voltchure.com -d www.voltchure.com --webroot -w /var/www/html/volt/ certonly --dry-run
It produced this output:
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 www.voltchure.com
Using the webroot path /var/www/html/volt for all unmatched domains.
Waiting for verificationā¦
Cleaning up challenges
Failed authorization procedure. www.voltchure.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://voltchure.com [216.186.249.253]: ā\n\n \n Index of /\n \n \n
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.
My web server is (include version):
The operating system my web server runs on is (include version):
Server version: Apache/2.4.38 (Debian)
Server built: 2019-10-15T19:53:42
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 0.31.0
My two .conf files for the apache2 vhosts definitely do not have a redirect.
I use namecheap for the domain and thought maybe that was causing the issue, but I canāt see any option there that is redirecting to an https://.
Sorry, I am having a difficulty understanding how to correct this issue.
Iāve exhausted most of the ideas I can think of with apache2 or the domain name provider - every time I get a domain I go through this lengthy process and Iām never sure what fixes it because different solutions always seem to not work the next time
It turns out this whole time, the default āworkingā namecheap configuration I was using was incorrect.
For those who might encounter this, I needed TWO A Records - one for my www and the regular. Instead, as is somehow default in their template, there was a URL Redirect Record which contained the www - this can work normally for website operation, but causes validation failure for SSL.
Strangely enough, Iāve got several other domains with the URL Redirect Record that I was able to make work after several days of trying, various methods. (Standalone was even failing for me, but that had worked before, Iād even got to the point of trying to manually enter the DNS method of validation for certbot - which is also different on namecheap and difficult).
Oh well. Now I know the exact problem, what caused it and it shall plague me no more!
<3 <3 <3 All the thanks in the world, once again, fantastic community and service!