Is it possible to add an option to configure the host name to deploy a free SSL certificate?

Is it possible to add an option to configure the host name to deploy a free SSL certificate? The general process is to detect whether the user has resolved the host web management domain name before installation! If it is resolved, apply for a Let’s Encrypt certificate, Y confirm the installation of the Let’s Encrypt certificate, and N install the self-signed certificate! The significance of this step is mainly that the browser accesses the self-signature and cannot access it normally, especially Firefox! Very uncomfortable!

v-add-letsencrypt-host

if you’ve configured your histname and dns oroperly, it tries to generate one after installation and first reboot.