How do I add www I am using vestaCP

I got the certificate setup after a lot of trial and error by using this guild

But the guild didn’t tell me that I needed to add www.

In vestaCP the www is set as an Aliases.

My site works with https: // but not https: //
It will still work with http: //

Can someone help me as to how to add the www.

The letsencrypt client accepts multiple -d arguments, if you wish to pass additional domains. To use the sample from your guide with two domains:

./letsencrypt-auto certonly -a webroot --renew-by-default --webroot-path /home/admin/web/<domain>/public_html -d -d

When i did that I got this error

"An unexpected error occurred:
TypeError: coercing to Unicode: need string or buffer, NoneType found
Please see the logfiles in /var/log/letsencrypt for more details."

Can you provide us with the exact command you used, and the associated part of the log file please.

I ran into some other issues with my server and had to back up my sites and reinstall the OS.
After I got everything back up and running I reinstalled letsencrypt and tried my first domain and it said “Too many certificates already issued for:mydomain” so i guess I’ll have to wait until I can try again. I think I read somewhere that it’s 7 days?

Anyway I tried the command that pfg posted on my second domain and it worked fine. So on that domain ssl is working for the domain and the www part.

Thanks for th ehelp guys I’ll just have to wait now.
Is there a way that I can check to see how long I have to wait?

Thanks again

You could search for your domain at - it will tell you when certs were issued for your domain, so may give you a fair indication.

Try simplest shell script:

le  issue    /home/admin/web/<domain>/public_html

I’ve written a tool to bridge the gap between the ACME client and VestaCP’s API. It will, given a Vesta site (or multiple sites), request and install a certificate that contains SANs for all of the Vesta aliases listed on the site(s).

You can find it at