Feature Request: Native Cloudflare DNS-01 Support for Let's Encrypt in Virtualmin GPL

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.5
Webmin version 2.670
Usermin version 2.570
Virtualmin version 8.3.0 GPL
Theme version 26.70
Apache version 2.4.52
Package updates All installed packages are up to date

Hi everyone,

I’m running Virtualmin GPL 8.3.0 on a server hosting around 110 virtual servers. Most of the domains (98) use Cloudflare for DNS, while Virtualmin handles the websites, mail services and SSL certificates.

Currently, certificates are renewed automatically using Let’s Encrypt, mostly through HTTP-01 validation. The problem is that I’d prefer to keep inbound port 80 closed. I’ve noticed significantly less unwanted traffic and fewer load alerts when it’s blocked, but HTTP-01 validation requires it to be accessible.

I already have Certbot and the python3-certbot-dns-cloudflare plugin installed, so DNS-01 validation is technically possible outside Virtualmin. However, I’d rather not introduce a separate renewal system that could interfere with Virtualmin’s existing certificate management.

What I’m looking for is a way to use Cloudflare’s API only for DNS-01 challenges, without handing over general DNS zone management to Virtualmin.

Ideally, Virtualmin would create and remove the temporary _acme-challenge TXT records through the Cloudflare API, while continuing to handle certificate installation, automatic renewal, and deployment to Apache, Postfix and Dovecot as it does now.

Is anything like this already supported in Virtualmin GPL, perhaps through an existing hook or configuration option that I’ve missed?

If not, would it be feasible to add DNS-01 validation through external DNS providers as a separate feature, independent of full Cloud DNS management?

With so many domains on the server, configuring and maintaining separate certificate renewal scripts for every domain isn’t particularly appealing.

I’d be interested to hear whether there’s an existing solution or if this is something worth considering for a future release.

Thanks!

1 Like