Hello,
I recently did a clean install of Debian 9 and Virtualmin, and recreated all virtual servers and manually transferred all mail, public_http contents and databases. All went fine, except for the Let’s Encrypt certificates. At first the certificate request failed for most domains due to a http -> https redirect that somehow created a redirect loop.
I managed to get the certificates for most virtual servers, but two of them remain problematic. Even from the console the certificate request fails. Here’s what I get:
#virtualmin generate-letsencrypt-cert --domain somedomain.tld --renew 2
Requesting SSL certificate for somedomain.tld www.somedomain.tld mail.somedomain.tld autoconfig.somedomain.tld autodiscover.somedomain.tld …
… failed : Web-based validation failed : Failed to request certificate : Gave up waiting for validation
DNS-based validation failed : Failed to request certificate : Gave up waiting for validation
But if I request the certificate using the staging environment it works:
virtualmin generate-letsencrypt-cert --domain somedomain.tld --renew 2 --staging
Requesting SSL certificate for somedomain.tld www.somedomain.tld mail.somedomain.tld autoconfig.somedomain.tld autodiscover.somedomain.tld …
… done
Copying to webserver configuration …
… done
Applying web server configuration …
… done
So something must be wrong there.
Also, previously I used a certificate with multiple domains for postfix, like this:
maindomain.tld
www.maindomain.tld
mail.maindomain.tld
mail.domain1.tld
mail.domain2.tld
mail.domain3.tld
But now that one also fails.
All Let’s Encrypt functionality worked correctly in the previous install.