# Adding additional domains

**URL:** <https://community.letsencrypt.org/t/adding-additional-domains/24725>\
**Category:** Help\
**Created:** [December 27, 2016, 7:31am UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725 "2016-12-27T07:31:20Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoyalV](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/joyalv/32/11832_2.png) [@JoyalV](https://community.letsencrypt.org/u/JoyalV)\
**Post date:** [December 27, 2016, 7:31am UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/1 "2016-12-27T07:31:20Z")

</div>

Hello,

I installed letsencrypt certificates using certbot but I only did [sub.domain.com](http://sub.domain.com) and not [www.sub.domain.com](http://www.sub.domain.com)

How can I add [www.sub.domain.com](http://www.sub.domain.com)?

Thanks

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [December 27, 2016, 8:25am UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/2 "2016-12-27T08:25:03Z")

</div>

Hi,

You don’t say exactly what command you ran before, so I can’t give the exact command, but basically you need to use the --expand flag and then include both the [sub.domain.com](http://sub.domain.com) and [www.sub.domain.com](http://www.sub.domain.com) - see [https://certbot.eff.org/docs/using.html#re-running-certbot](https://certbot.eff.org/docs/using.html#re-running-certbot)

---

<div class="post-metadata">

**Author:** ![JoyalV](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/joyalv/32/11832_2.png) [@JoyalV](https://community.letsencrypt.org/u/JoyalV)\
**Post date:** [December 27, 2016, 3:51pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/3 "2016-12-27T15:51:51Z")

</div>

I followed instructions on Certbot for Apache, Ubuntu 16.04.

Do I do letsencrypt renew --expand [www.sub.domain.com](http://www.sub.domain.com) to add?

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [December 27, 2016, 3:54pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/4 "2016-12-27T15:54:36Z")

</div>

There are many ways you could have run the command on ubuntu. You could have used auto, certonal, webroot etc

Can you tell me exactly what commands you did run to obtain the certificate, then I can tell you what modified command to use to expand the certificate

---

<div class="post-metadata">

**Author:** ![JoyalV](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/joyalv/32/11832_2.png) [@JoyalV](https://community.letsencrypt.org/u/JoyalV)\
**Post date:** [December 27, 2016, 4:07pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/5 "2016-12-27T16:07:53Z")

</div>

I followed the command on this page

> **[Certbot](https://certbot.eff.org/#ubuntuxenial-apache)**
>
> Automatically enable HTTPS on your website with EFF's Certbot, deploying Let's Encrypt certificates.

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [December 27, 2016, 4:10pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/6 "2016-12-27T16:10:50Z")

</div>

which command ?

> letsencrypt --apache

or

> letsencrypt --apache certonly

did you then select a number of domains from a list ? .......

What's the domain name (or subdomain) you are trying to modify - maybe I can work backwords from tthe certificate to give you the command.

---

<div class="post-metadata">

**Author:** ![JoyalV](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/joyalv/32/11832_2.png) [@JoyalV](https://community.letsencrypt.org/u/JoyalV)\
**Post date:** [December 27, 2016, 4:22pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/7 "2016-12-27T16:22:27Z")

</div>

letsencrypt --apache and only the summer subdominant I added shows up

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [December 27, 2016, 4:23pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/8 "2016-12-27T16:23:55Z")

</div>

Do you have the www subdomain configured in your apache ? (if so it should have showed up )

You can try

> letsencrypt --apache --expand -d sub,[domain.com](http://domain.com) -d [www.sub.domain.com](http://www.sub.domain.com)

without knowing your exact detail though, I can't be certain.

---

<div class="post-metadata">

**Author:** ![JoyalV](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/joyalv/32/11832_2.png) [@JoyalV](https://community.letsencrypt.org/u/JoyalV)\
**Post date:** [December 27, 2016, 4:40pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/9 "2016-12-27T16:40:53Z")

</div>

What’s the difference between d and -d? Also what is the process to delete an added domain?

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [December 27, 2016, 4:43pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/10 "2016-12-27T16:43:08Z")

</div>

> [@JoyalV](#):
>
> What's the difference between d and -d?

a typo on my part - they should both be -d

---

<div class="post-metadata">

**Author:** ![JoyalV](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/joyalv/32/11832_2.png) [@JoyalV](https://community.letsencrypt.org/u/JoyalV)\
**Post date:** [December 27, 2016, 8:30pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/11 "2016-12-27T20:30:57Z")

</div>

Why do I have to do -d [sub.domain.com](http://sub.domain.com)? Is it so that it stays?

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [December 27, 2016, 8:33pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/12 "2016-12-27T20:33:24Z")

</div>

You have to specify all the domains you want on the certificate.

One of the reason I have repeatedly asked for the domain name & exactly how you set it up originally is so that I could provide the detail of command you required - hence, without that, I’m just guessing that you wanted the cert expanded for only the [sub.domain.com](http://sub.domain.com) and [www.subdomain.com](http://www.subdomain.com).

---

<div class="post-metadata">

**Author:** ![JoyalV](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/joyalv/32/11832_2.png) [@JoyalV](https://community.letsencrypt.org/u/JoyalV)\
**Post date:** [December 27, 2016, 8:37pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/13 "2016-12-27T20:37:29Z")

</div>

Thanks a lot for your help \<3

---

<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:** [January 26, 2017, 8:37pm UTC](https://community.letsencrypt.org/t/adding-additional-domains/24725/14 "2017-01-26T20:37:58Z")

</div>

Closed on January 26, 2017, 8:37pm UTC

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