How to add SSL to webmail domain using CLI

Hello,
I have DNS records added such as “mail” & “webmail” and they already point towards the correct “A” records.

I know we can log in to HestiaCP GUI go to the domain edit mail, and add SSL.

Is there any way to add a Let’s Encrypt SSL to domain webmail using CLI as we do for normal domains? I don’t find any CLI command for in the DOC.

Thank you.

Have u tried v-add-letsencrypt-domain for your mail domain?

1 Like

As @CStangerup said, the right command is v-add-letsencrypt-domain but as doc doesn’t provide too much details, the right command in your case should be:

Let’s assume your user is bikrama and your domain is example.com

v-add-letsencrypt-domain bikrama example.com '' yes

Above command will issue a Let’s Encrypt certificate for (mail.example.com and webmail.example.com).

2 Likes

Thank you @sahsanu It worked for me.

2 Likes

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