# Extend certificate by one altname

**URL:** <https://community.letsencrypt.org/t/extend-certificate-by-one-altname/23355>\
**Category:** Help\
**Created:** [November 29, 2016, 10:13pm UTC](https://community.letsencrypt.org/t/extend-certificate-by-one-altname/23355 "2016-11-29T22:13:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allo](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@allo](https://community.letsencrypt.org/u/allo)\
**Post date:** [November 29, 2016, 10:13pm UTC](https://community.letsencrypt.org/t/extend-certificate-by-one-altname/23355/1 "2016-11-29T22:13:15Z")

</div>

Is there something like this command?

```
certbot extend -domain maindomain -new newaltname

```

I created some certificate with

```
certbot certonly -d maindomain -d somealtname -d someotheraltname

```

and now want to get a certificate as if i would have requested it with

```
certbot certonly -d maindomain -d somealtname -d someotheraltname -d newaltname

```

but without remembering the old commandline to avoid mistakes like removing some other altname.

---

<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:** [November 29, 2016, 10:29pm UTC](https://community.letsencrypt.org/t/extend-certificate-by-one-altname/23355/2 "2016-11-29T22:29:07Z")

</div>

Unfortunately, something like that is not available yet. The recommended method for adding a new domain to an existing certificate is indeed to re-use the original command line, add the new domain with another `-d` flag, and add `--expand` to tell `certbot` not to create a new lineage (that would result in a new subdirectory in `/etc/letsencrypt/live`).

---

<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:** [December 29, 2016, 10:29pm UTC](https://community.letsencrypt.org/t/extend-certificate-by-one-altname/23355/3 "2016-12-29T22:29:10Z")

</div>

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