# Additional sub-domain

**URL:** <https://community.letsencrypt.org/t/additional-sub-domain/13249>\
**Category:** Uncategorized\
**Created:** [March 26, 2016, 10:15pm UTC](https://community.letsencrypt.org/t/additional-sub-domain/13249 "2016-03-26T22:15:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevewrightnz](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@stevewrightnz](https://community.letsencrypt.org/u/stevewrightnz)\
**Post date:** [March 26, 2016, 10:15pm UTC](https://community.letsencrypt.org/t/additional-sub-domain/13249/1 "2016-03-26T22:15:33Z")

</div>

Hi all,

I have set up a new sub-domain on my website and want to add an new certificate for it.

My existing certs will expire in a month or so and I was going to wait until then so that everything will be in sync.

My question is can I just add the new sub-domain to the list of sites that the renewed certificates will be valid for?

Existing valid certs for:-  
[example.com](http://example.com)  
[www.example.com](http://www.example.com)  
[sub1.example.com](http://sub1.example.com)

new site  
sub2.example .com

thought I might do something like:-  
./letsencrypt-auto certonly -d [example.com](http://example.com) -d [www.example.com](http://www.example.com) -d [sub1.example.com](http://sub1.example.com) -d [sub2.example.com](http://sub2.example.com)

Steve

---

<div class="post-metadata">

**Author:** ![pfg](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/pfg/32/1924_2.png) [@pfg](https://community.letsencrypt.org/u/pfg)\
**Post date:** [March 26, 2016, 10:22pm UTC](https://community.letsencrypt.org/t/additional-sub-domain/13249/2 "2016-03-26T22:22:29Z")

</div>

> [@stevewrightnz](#):
>
> thought I might do something like:-  
> ./letsencrypt-auto certonly -d [example.com](http://example.com) -d [www.example.com](http://www.example.com) -d [sub1.example.com](http://sub1.example.com) -d [sub2.example.com](http://sub2.example.com)

That's pretty much it, with the addition of `--expand`. That'll replace your existing certificate and key files, instead of creating a new directory in `/etc/letsencrypt/live/`.

```plaintext
--expand If an existing cert covers some subset of the
                      requested names, always expand and replace it with the
                      additional names. (default: False)

```

It'll also amend your renewal config file, so the next time you run `./letsencrypt-auto renew`, the new domain will be added as well. Let's Encrypt recommends to renew every 60 days, so your timing is just right. 😄
