How to add new domains to Let's Encrypt SSL Certification while retaining existing certificates? [closed]

1

I already have some domains using the Let's Encrypt SSL certificate.

Using the certbot-auto command, I install a certificate for a given domain. For example:

sudo certbot-auto --apache -d meusite.com

How can I add new domains to this same certificate?

That is, I want to run this command to certify other domains, but I would like to keep the ones that are already working.

    
asked by anonymous 16.08.2017 / 14:31

1 answer

1

To do this, simply use the certbot-auto command combined with the --expand option, and -d , to add the desired domains.

  sudo certbot-auto --expand -d dominio1.com.br,dominio2.com.br

In my case, the added certificate was expired, perhaps because it was an old domain, so I had to run the command sudo certbot-auto renew after the above step.

    
16.08.2017 / 14:31