Requesting a certificate for example.jp, www.example.jp from Let’s Encrypt …
… request failed : Web-based validation failed :
This program always tries to make a temp file in /home/example/public_html directory, but I changed the document root to /home/example/www. The site is running so I can’t change the doc root to default.
Is there a way to create a cert using Virtualmin panel under the conditon above?
One way which I can think of is for you to temporarily change the doc root back to default, get your SSL certificate from Let’s Encrypt and change it back again to /home/example/www.
There is an unavoidable 5 min of downtime but it is a quick and dirty solution and it gives you a three month window - till the next renewal of the SSL certificate - to figure out a proper solution by editing your .htaccess appropriately for example.
One way which I can think of is for you to temporarily change the doc root back to default, get your SSL certificate from Let’s Encrypt and change it back again to /home/example/www.
I also considered that way, but I’ll have to do the same thing for each renewal period, so this time I’ll use another certificate.
I hope Virtualmin supports irregular document root when creating Let’s encrypt cert in the near future.