Generate Let's enncrypt certificate via VIrtualmin cli API


I need to setup domains to have let’s encrypt ssl certificate via the Virtualmin command line or http API but I can’t find any reference to this in any of the Virtualmin docs.

Even the install-cert docs do not say anything about let’s encrypt.

Is this possible?

Please help
Thanks in advance.

You could use certbot via command line to do it?

You also have a setting in Virtualmin, under System Settings, Virtualmin Configuration, SSL settings, Request Let’s Encrypt certificate at domain creation time? yes/no, default is no.

Hope it helps.

Thanks for your reply. I have however found how to do it:

virtualmin generate-letsencrypt-cert --domain --host --web