Adding more domains to SSL Cert

Hi folks,

So I have an existing SSL for mail.domain.com mail.domain1.com visa version.

What is the best way to add new domains to existing SSL certificate? I originally used the following and I was wondering I could just add the new domain this this command I used for Certbot.

certbot certonly --cert-name mailcert --dns-digitalocean --dns-digitalocean-credentials ~/.secrets/certbot/digitalocean.ini --dns-digitalocean-propagation-seconds 60 --post-hook "service postfix reload; service dovecot reload;" -d mail.domain1.com,mail.domain2.com

Could I use this to add the new domain?

certbot certonly --cert-name mailcert --dns-digitalocean --dns-digitalocean-credentials ~/.secrets/certbot/digitalocean.ini --dns-digitalocean-propagation-seconds 60 --post-hook "service postfix reload; service dovecot reload;" -d mail.domain1.com,mail.domain2.com,mail.domain.com

Regards.

Yes, Certbot will prompt you to confirm you are adding a name to that cert.

5 Likes

Look into the --expand option if you don't want to be prompted.

https://eff-certbot.readthedocs.io/en/latest/using.html#re-creating-and-updating-existing-certificates

6 Likes

Awesome just as easy as that ? :sunglasses:

4 Likes

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