Add www to the certificate


#1

Hi

I followed this tutorial: https://digitaldavo.wordpress.com/2016/01/13/using-free-letsencrypt-https-ssl-on-bitnami-lamp-on-ec2/

And my domain.com works well, BUT i forgot to add www.domain.com to the letsencrypt-auto script,

so my question is, can I “add” the subdomain running the script only with the option “-d www.domain.com?

Or I have to run both domains? “-d domain.com -d www.domain.com?

Thx.


#2

You’d need to run both domains. You’ll probably also want to add the --expand flag to avoid issues with the certificates later on.


#3

@danb35

Will irunning the command afect to the rateLimit (I guess the certificates will be new) ?

What does --expand flag do?

Thx.


#4

It will be issuing a new certificate, so it will affect the rate limits. The --expand flag will (or at least should) keep the new cert in the same hierarchy–if your current cert is in /etc/letsencrypt/live/yourdomain.tld, the new one will be too. Otherwise it would probably go in yourdomain.tld-0001 or something like that.


#5

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