These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Cannot renew letsencrypt cert from within virtualmin on the new forum.
After the latest update of webmin I cannot renew a letsencrypt cert for a virtual server in virtualmin. When selecting virtualmin/domain/manage ssl cert and selecting the letsencrypt tab when clicking get cert this is the output (I changed the domain names for reasons of privacy):
Requesting a certificate for domain.tld, www.domain.tld from Let's Encrypt ..
.. request failed :
usage:
letsencrypt [SUBCOMMAND] [options] [-d domain] [-d domain] ...
The Let's Encrypt agent can obtain and install HTTPS/TLS/SSL certificates. By
default, it will attempt to use a webserver both for obtaining and installing
the cert. Major SUBCOMMANDS are:
(default) run Obtain & install a cert in your current webserver
certonly Obtain cert, but do not install it (aka "auth")
install Install a previously obtained cert in a server
renew Renew previously obtained certs that are near expiry
revoke Revoke a previously obtained certificate
rollback Rollback server configuration changes made during install
config_changes Show changes made to server config during installation
plugins Display information about installed plugins
letsencrypt: error: unrecognized arguments: --preferred-challenges=dns --manual-auth-hook /etc/webmin/webmin/letsencrypt-dns.pl --manual-cleanup-hook /etc/webmin/webmin/letsencrypt-cleanup.pl
This would appear to suggest that the latest webmin update which added DNS validation mode for Let's Encrypt certificates has created an issue within virtualmin. Has anyone else come across this or have a solution?
Many Thanks