# Config file overwritten, reuse-key parameter removed & ignored

**URL:** <https://community.letsencrypt.org/t/config-file-overwritten-reuse-key-parameter-removed-ignored/99821>\
**Category:** Help\
**Created:** [August 13, 2019, 7:37pm UTC](https://community.letsencrypt.org/t/config-file-overwritten-reuse-key-parameter-removed-ignored/99821 "2019-08-13T19:37:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![swift](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@swift](https://community.letsencrypt.org/u/swift)\
**Post date:** [August 13, 2019, 7:37pm UTC](https://community.letsencrypt.org/t/config-file-overwritten-reuse-key-parameter-removed-ignored/99821/1 "2019-08-13T19:37:52Z")

</div>

My domain is:  
[countly.onfleet.com](http://countly.onfleet.com)

I ran this command:  
Added parameter “reuse-key = true” to file /etc/letsencrypt/renewal/countly.onfleet.com.conf for an existing certificate.

It produced this output:  
When the existing cert was auto-renewed, the file was overwritten, and a new key generated.

My web server is (include version):  
nginx

The operating system my web server runs on is (include version):  
Ubuntu 14

I can login to a root shell on my machine (yes or no, or I don’t know):  
yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):  
no

The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you’re using Certbot):  
certbot 0.31.0

I am reading the PR for it now, to figure out what I did wrong.

---

<div class="post-metadata">

**Author:** ![mnordhoff](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mnordhoff/32/22583_2.png) [@mnordhoff](https://community.letsencrypt.org/u/mnordhoff)\
**Post date:** [August 13, 2019, 7:47pm UTC](https://community.letsencrypt.org/t/config-file-overwritten-reuse-key-parameter-removed-ignored/99821/2 "2019-08-13T19:47:51Z")

</div>

In a renewal configuration file, you have to set “`reuse_key = True`”, not “`reuse-key = true`”.

---

<div class="post-metadata">

**Author:** ![swift](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@swift](https://community.letsencrypt.org/u/swift)\
**Post date:** [August 13, 2019, 7:53pm UTC](https://community.letsencrypt.org/t/config-file-overwritten-reuse-key-parameter-removed-ignored/99821/3 "2019-08-13T19:53:57Z")

</div>

Thanks - is there a documentation page for that I missed? I haven’t seen that form anywhere in the forums.

---

<div class="post-metadata">

**Author:** ![mnordhoff](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mnordhoff/32/22583_2.png) [@mnordhoff](https://community.letsencrypt.org/u/mnordhoff)\
**Post date:** [August 13, 2019, 7:59pm UTC](https://community.letsencrypt.org/t/config-file-overwritten-reuse-key-parameter-removed-ignored/99821/4 "2019-08-13T19:59:47Z")

</div>

I’m not sure. I just know that that’s the usual format for option names and boolean values.

Before writing that post, I grepped the source code to see if `reuse_key` was probably correct\*, and I tested that it worked. I didn’t read the documentation.

\* Some options have different internal and public-facing names. For example, `--preferred-challenges` is `pref_challs`.

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [August 13, 2019, 8:16pm UTC](https://community.letsencrypt.org/t/config-file-overwritten-reuse-key-parameter-removed-ignored/99821/5 "2019-08-13T20:16:58Z")

</div>

This is a feature of the parser that we use in Certbot. Multi-word options are written on the command line with a `-` (following GNU getopt convention) but in configuration files with a `_` (following Python convention).

I will check whether we’ve documented that pattern anywhere—it’s very possible that we’ve totally forgotten to do so.

---

<div class="post-metadata">

**Author:** ![swift](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@swift](https://community.letsencrypt.org/u/swift)\
**Post date:** [August 13, 2019, 9:56pm UTC](https://community.letsencrypt.org/t/config-file-overwritten-reuse-key-parameter-removed-ignored/99821/6 "2019-08-13T21:56:47Z")

</div>

Thank you both, I very much appreciate the explanation.

---

<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:** [September 12, 2019, 10:07pm UTC](https://community.letsencrypt.org/t/config-file-overwritten-reuse-key-parameter-removed-ignored/99821/7 "2019-09-12T22:07:24Z")

</div>

Closed on September 12, 2019, 10:07pm UTC

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