Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching from let's encrypt staging to production

Tags:

lets-encrypt

I’m using ubuntu 18.04.1 LTS with docker / docker compose and traefik. The setup to get certificates is working fine using the staging Let’s Encrypt caserver (https://acme-staging-v02.api.letsencrypt.org/directory). All my specified hosts do get a Fake LE Intermediate X1cert. There are no errors in the logs.

I can however not enable Let’s Encrypt production certs. In the traefik.toml file - [acme] I deleted the staging caserver uri: no error in the logs / no production cert (staging cert is still applied). Even when I add the Let’s Encrypt prod uri (https://acme-v02.api.letsencrypt.org/directory 2) although it should default, result is sill the same: no prod certs and acme.json still shows the staging uri.

The traefik [acme]:

    [acme]
    email = "[email protected]"
    caserver = "https://acme-v02.api.letsencrypt.org/directory 2"
    storage="acme.json"
    entryPoint = "https"
    onHostRule = true
    [acme.httpChallenge]
    entryPoint = "http"

    [[acme.domains]]
    main = "mydomain"
    [[acme.domains]]
    …

What am I missing? Appreciate your input.

like image 637
hproxy Avatar asked Sep 14 '25 19:09

hproxy


1 Answers

Issue is solved. Delete the acme.json & recreate the file. Initially I deleted the content of the acme file but that did not work as explained earlier.

like image 194
hproxy Avatar answered Sep 17 '25 19:09

hproxy