# Letsencrypt does not provide a certificate

**URL:** <https://community.traefik.io/t/letsencrypt-does-not-provide-a-certificate/13288>\
**Category:** Traefik v2\
**Tags:** cli, docker\
**Created:** [February 1, 2022, 9:30am UTC](https://community.traefik.io/t/letsencrypt-does-not-provide-a-certificate/13288 "2022-02-01T09:30:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![canel-rom1](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/canel-rom1/32/4879_2.png) [@canel-rom1](https://community.traefik.io/u/canel-rom1)\
**Post date:** [February 1, 2022, 9:30am UTC](https://community.traefik.io/t/letsencrypt-does-not-provide-a-certificate/13288/1 "2022-02-01T09:30:59Z")

</div>

I am hosting a site for a friend with a different domain name than mine.  
The domain is: [https://www.garagedecheseaux.ch/](https://www.garagedecheseaux.ch/)

I forgot to save the acme.json file once the certificate was validated and I restored acme.json which did not have the key for this domain.

Now, for this domain, I have a CN=TRAEFIK DEFAULT CERT. How do I get my certificate?

I see that my old one has expired: [crt.sh | 5425180323](https://crt.sh/?id=5425180323)

Thank you very much

---

<div class="post-metadata">

**Author:** ![canel-rom1](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/canel-rom1/32/4879_2.png) [@canel-rom1](https://community.traefik.io/u/canel-rom1)\
**Post date:** [February 1, 2022, 10:14am UTC](https://community.traefik.io/t/letsencrypt-does-not-provide-a-certificate/13288/2 "2022-02-01T10:14:41Z")

</div>

Sorry, I resolve now my problem 😅

but I would still like some information. Is there a command with traefik to test certificates and force renewal? Or if I understand correctly, I have to delete the entries in acme.json and restart traefik?

Thanks for your information.

---

<div class="post-metadata">

**Author:** ![vitachaos](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/vitachaos/32/4487_2.png) [@vitachaos](https://community.traefik.io/u/vitachaos)\
**Post date:** [September 20, 2022, 9:03pm UTC](https://community.traefik.io/t/letsencrypt-does-not-provide-a-certificate/13288/3 "2022-09-20T21:03:59Z")

</div>

I am also interested in knowing how to force renew certs

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [September 21, 2022, 11:45am UTC](https://community.traefik.io/t/letsencrypt-does-not-provide-a-certificate/13288/4 "2022-09-21T11:45:36Z")

</div>

Check [Traefik Let's Encrypt configuration examples](https://doc.traefik.io/traefik/https/acme/#configuration-examples) on how to setup the LE certificate process within Traefik.

```auto
# traefik.yml or command line params

entryPoints:
  web:
    address: ":80"
  websecure:
    address: ":443"

certificatesResolvers:
  myresolver:
    acme:
      email: your-email@example.com
      storage: acme.json
      httpChallenge:
        # used during the challenge
        entryPoint: web

log:
  level: DEBUG

accessLog: {}

```

Additionally you need to create the router referencing `myresolver`, either in dynamic.yml or via labels when using service discovery.

If it does not renew, enable and check [Traefik logs](https://doc.traefik.io/traefik/observability/logs/) and set them to debug, check [Traefik access logs](https://doc.traefik.io/traefik/observability/access-logs/). Make sure the validation works. In general you get a new certificate, so you don't need an old one.
