# What is the difference between v-add-letsencrypt-domain and v-add-letsencrypt-host?

**URL:** <https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418>\
**Category:** Community Support\
**Created:** [May 19, 2024, 6:52pm UTC](https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418 "2024-05-19T18:52:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ade](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/ade/32/6458_2.png) [@Ade](https://forum.hestiacp.com/u/Ade)\
**Post date:** [May 19, 2024, 6:52pm UTC](https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418/1 "2024-05-19T18:52:54Z")

</div>

Hi everyone,

I am installing a site manually via CLI, and I have three question regarding v-add-letsencrypt-domain.

1. What is the difference between v-add-letsencrypt-domain and v-add-letsencrypt-host?
2. What is [MAIL] that I see in the parameters?
3. Once I install the SSL certificate using v-add-letsencrypt-domain, do I have to run the command to add the cronjob check for the SSL renewal, or is that automatic?

Regards,  
Ade

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [May 19, 2024, 9:02pm UTC](https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418/2 "2024-05-19T21:02:09Z")

</div>

v-add-letsencrypt-domain does for any domains

v-add-letsencrypt-host call v-add-letsencrypt-domain and update some other certificates for Hestia it self

Generate SSL for [mail.domain.com](http://mail.domain.com) and [webmail.com.com](http://webmail.com.com)

Cronjob is created by default

---

<div class="post-metadata">

**Author:** ![Ade](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/ade/32/6458_2.png) [@Ade](https://forum.hestiacp.com/u/Ade)\
**Post date:** [May 19, 2024, 9:06pm UTC](https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418/3 "2024-05-19T21:06:13Z")

</div>

So if I use

v-add-letsencrypt-host [mydomainname.com](http://mydomainname.com) [www.mydomainname.com](http://www.mydomainname.com)

a SSL certificate will be issued for [mydomainname.com](http://mydomainname.com), [www.mydomainname.com](http://www.mydomainname.com), [mail.mydomainname.com](http://mail.mydomainname.com) and [webmail.mydomainname.com](http://webmail.mydomainname.com) ?

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [May 19, 2024, 9:22pm UTC](https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418/4 "2024-05-19T21:22:03Z")

</div>

No, `v-add-letsencrypt-host` doesn’t accept arguments, it will only issue a certificate for your hostname.

If you want to issue a certificate for web domain `mydomainname.com,www.mydomainname.com` and also the certificate for mail domain `mail.mydomainname.com,webmail.mydomainname.com` you should use these commands:

```t
v-add-letsencrypt-domain YourUser mydomainname.com www.mydomainname.com
v-add-letsencrypt-domain YourUser mydomainname.com '' yes

```

---

<div class="post-metadata">

**Author:** ![Ade](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/ade/32/6458_2.png) [@Ade](https://forum.hestiacp.com/u/Ade)\
**Post date:** [May 19, 2024, 9:24pm UTC](https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418/5 "2024-05-19T21:24:33Z")

</div>

Thank you!

😄 but I’m sorry, what do we mean for hostname, since the HestaCP is full of hostnames?

Anyway I’ll use v-add-letsencrypt-domain then 👍 , no need to manually add the cron if I got this right

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [May 19, 2024, 9:28pm UTC](https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418/6 "2024-05-19T21:28:01Z")

</div>

> [@Ade](#):
>
> what do we mean for hostname, since the HestaCP is full of hostnames?

The server’s name: `hostname -f`

> [@Ade](#):
>
> no need to manually add the cron if I got this right

Cron job is already added, you don’t need neither to add it manually nor remove it.

```t
v-list-cron-jobs admin | grep ssl

```

---

<div class="post-metadata">

**Author:** ![Ade](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/ade/32/6458_2.png) [@Ade](https://forum.hestiacp.com/u/Ade)\
**Post date:** [May 19, 2024, 9:30pm UTC](https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418/7 "2024-05-19T21:30:04Z")

</div>

Awesome, thank you!

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [June 18, 2024, 9:30pm UTC](https://forum.hestiacp.com/t/what-is-the-difference-between-v-add-letsencrypt-domain-and-v-add-letsencrypt-host/14418/8 "2024-06-18T21:30:46Z")

</div>

Closed on June 18, 2024, 9:30pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
