# \[SOLVED\] Cannot obtain lets encrypt certificate

**URL:** <https://discuss.freedombox.org/t/solved-cannot-obtain-lets-encrypt-certificate/543>\
**Category:** Support\
**Created:** [December 4, 2019, 10:02pm UTC](https://discuss.freedombox.org/t/solved-cannot-obtain-lets-encrypt-certificate/543 "2019-12-04T22:02:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mray](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/mray/32/9_2.png) [@mray](https://discuss.freedombox.org/u/mray)\
**Post date:** [December 4, 2019, 10:02pm UTC](https://discuss.freedombox.org/t/solved-cannot-obtain-lets-encrypt-certificate/543/1 "2019-12-04T22:02:36Z")

</div>

I’m using FreedomBox19.21, set up DynDNS so that I can reach it by [freedombox.domain.de](http://freedombox.domain.de).

I tried to remove and recreate a certificate but get the same error every time:

 ![image](https://discuss.freedombox.org/uploads/default/original/1X/1bb675e722489fe4f112161a4dd0f9412cd9b8ed.png)

I notice that the error message says something about `freedombox.freedombox.domain.de` which seems odd.

My hostname is “freedombox” and my domain name is “[freedombox.domain.de](http://freedombox.domain.de)”.

What can be done to make certificates work again?

---

<div class="post-metadata">

**Author:** ![jvalleroy](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/jvalleroy/32/331_2.png) [@jvalleroy](https://discuss.freedombox.org/u/jvalleroy)\
**Post date:** [December 8, 2019, 1:28am UTC](https://discuss.freedombox.org/t/solved-cannot-obtain-lets-encrypt-certificate/543/2 "2019-12-08T01:28:08Z")

</div>

Please check in `/etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory` and see if there are multiple account directories present. If there are, then you can try deleting the older one (I think it will start with “7a2f”).

---

<div class="post-metadata">

**Author:** ![mray](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/mray/32/9_2.png) [@mray](https://discuss.freedombox.org/u/mray)\
**Post date:** [December 8, 2019, 10:30am UTC](https://discuss.freedombox.org/t/solved-cannot-obtain-lets-encrypt-certificate/543/3 "2019-12-08T10:30:32Z")

</div>

Thank You!

I deleted the older one (there were two directories, the newer actually starting with “7a2f”) and could now successfully obtain a lets encrypt certificate.
