# Different certificate for subdomain

**URL:** <https://community.letsencrypt.org/t/different-certificate-for-subdomain/60404>\
**Category:** Server\
**Created:** [April 25, 2018, 5:25am UTC](https://community.letsencrypt.org/t/different-certificate-for-subdomain/60404 "2018-04-25T05:25:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [April 25, 2018, 9:40am UTC](https://community.letsencrypt.org/t/different-certificate-for-subdomain/60404/7 "2018-04-25T09:40:30Z")

</div>

```
sudo certbot -i apache -a manual --preferred-challenges dns \
-d a.example.com -d b.example.com -d c.example.com -d d.example.com \
-d e.example.com -d f.example.com

```

If you are using DNS validation, you may also choose to just issue a wildcard, which will be less validation steps and work for _any_ subdomain:

```
sudo certbot -i apache -a manual --preferred-challenges dns \
-d "*.example.com" -d example.com
```

---

_[View the full topic](https://community.letsencrypt.org/t/different-certificate-for-subdomain/60404)._
