did you use a real full domain name as hostname for your panel during install? that command tries to get an ssl certificate for that hostname, so it has to exist and point to your servers IP correctly…
Does that mean, if I delete the e.g. hcp.mydomain.com, I will have to start over again to add users, configure domain, mail and install WP from scratch?
no, if you want to use an existing domain that already has an ssl certificate generated you can tell hestia to simply use that via v-update-host-certificate <user> <domain.tld>
the other function would be used, if that domain is the main hostname not used for anything else.
if you deleted the domain, obviously my suggestion won’t work, because the domain and ssl cert don’t exist anymore.
so before you mix up things, decide on which way you want or need to go.
a) have a hostname/domain that you want to use for the panel and the same domain for your user/wordpress
b) have the hostname/domain for the panel differ from the one for your user and wordpress
for a) create the user and web domain under it in your panel, use the GUI to obtain a ssl certificate, use v-update-host-certificate in CLI to tell hestia to use this existing domain and cert
for b) have your servers general hostname setup properly, with the domain pointing to the IP so that letsencrypt can aquire a certificate correctly when using the v-add-letsencrypt host. this is not the domain of any user but the hostname of your server. usually you gave this name during install to hestia and it is automatically set up as webdomain in the admin account
@falzo thank you. I had tried your suggestion before deleting the web domain.
I couldn’t seem to find a way to fix this. I don’t mind starting over so I can learn everything from scratch again. How do I delete hestia and reinstall afresh?
I would like to go for approach B when starting afresh.
Thank you.
PS: I’ll appreciate if you can point me to the right resource to learn how to do this correctly.