This question is a continuation of essentially the same question that was closed for being "off-topic" on Stack Overflow.
The OP's question:
I am just simply trying to add the domain
test.example.com
to the certificate that already exists forexample.com
. How do I add a domain to my existing certificate and replace the old certificate?
Best Answer
With certbot 0.34.0, the procedure is simple and easy (depending on your system, substitute
certbot-auto
or~/certbot-auto
forcertbot
):First, list your existing certificate and domains:
This will return your certificate name and the domains currently on the certificate, for example:
Then add commas between the domains listed after the Domains: line above, add another comma, and the domain you want to add, for example, to add baz.example.com: