# Problem adding new domain to existing certificate

**URL:** <https://community.letsencrypt.org/t/problem-adding-new-domain-to-existing-certificate/27145>\
**Category:** Help\
**Created:** [February 4, 2017, 5:24pm UTC](https://community.letsencrypt.org/t/problem-adding-new-domain-to-existing-certificate/27145 "2017-02-04T17:24:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![turbo](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@turbo](https://community.letsencrypt.org/u/turbo)\
**Post date:** [February 4, 2017, 5:24pm UTC](https://community.letsencrypt.org/t/problem-adding-new-domain-to-existing-certificate/27145/1 "2017-02-04T17:24:53Z")

</div>

I just tried to add a new domain to my existing certificate. Looking at the documentation for certbot

> --expand If an existing cert covers some subset of the  
> requested names, always expand and replace it with the  
> additional names.

I used the following commandline on Debian  
$certbot certonly --standalone --rsa-key-size 4096 --expand -d [newdomain.com](http://newdomain.com)

The process started sucessful and created a NEW cert next to the one I wanted to "expand". Any ideas what I am missing?  
I am under the impression, that this command would add the new domain into the current cert and not creating a new additional certificate.

Thank you for any hints.

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [February 4, 2017, 5:26pm UTC](https://community.letsencrypt.org/t/problem-adding-new-domain-to-existing-certificate/27145/2 "2017-02-04T17:26:19Z")

</div>

Yes, you forgot to name (with `-d`) the FQDNs of the certificate you wanted to expand.

`certbot` can’t know to which certificate you want to add the new domain. The idea is you enter the domains of the certificate you’d like to expand _and_ the domain you want it to expand with.

---

<div class="post-metadata">

**Author:** ![turbo](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@turbo](https://community.letsencrypt.org/u/turbo)\
**Post date:** [February 4, 2017, 5:30pm UTC](https://community.letsencrypt.org/t/problem-adding-new-domain-to-existing-certificate/27145/3 "2017-02-04T17:30:44Z")

</div>

Thank you for this info. I started this post before I noticed the reply in my previous one which answered this at the same time.

Sorry for the kind of “double post”

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [March 6, 2017, 5:35pm UTC](https://community.letsencrypt.org/t/problem-adding-new-domain-to-existing-certificate/27145/4 "2017-03-06T17:35:17Z")

</div>

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