[Solved] Virtualmin letsencrypt error: Account creation on ACMEv1 is disabled
This error started to occur from beginning of last October with the Let's Encrypt's migration to API v2. Following is the error message you would receive when trying to generate SSL certificate for a domain with Virtualmin.
Error registering: Account creation on ACMEv1 is disabled. Please upgrade your ACME client to a version that supports ACMEv2 / RFC 8555. See https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430 for details.
The issue has been reported to Virtualmin devs and they are working on a solution. Although there's no patch released as of the time writing. So until it gets an official fix, you can use following workaround which works perfectly.
This workaround was suggested by one of core devs @virtualmin. The idea is to install Let's Encrypt manually. If the Certbot is available on the system, Virtualmin will use it instead of API for certificate generation. Following command will install Let's Encrypts Certbot on your server,
apt install socat certbot
Let's Encrypt has a registration process where they ask for your email address. Following command will initiate it,
Complete the registration with a valid email address and then request a new certificate for your domain Virtualmin SSL section.