From 4ad6376aa85422aa733d37c1440b3d2ae2384761 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 18 Mar 2021 10:17:05 +0100 Subject: Document how to repair Traefik/ACME --- op_guide/traefik/fix_acme.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 op_guide/traefik/fix_acme.md diff --git a/op_guide/traefik/fix_acme.md b/op_guide/traefik/fix_acme.md new file mode 100644 index 0000000..d3b41a5 --- /dev/null +++ b/op_guide/traefik/fix_acme.md @@ -0,0 +1,15 @@ +``` +curl http://127.0.0.1:8500/v1/kv/traefik/acme/account/object?raw > traefik.gzip +gunzip -c traefik.gzip > traefik.json +cat traefik.json | jq '.DomainsCertificate.Certs[] | .Certificate.Domain, .Domains.Main' +# "alps.deuxfleurs.fr" +# "alps.deuxfleurs.fr" +# "cloud.deuxfleurs.fr" +# "cloud.deuxfleurs.fr" +# chaque NDD doit apparaitre 2x à la suite sinon fix comme suit +cat traefik.json | jq > traefik-new.json +vim traefik-new.json +# enlever les certifs corrompus, traefik les renouvellera automatiquement au démarrage +gzip -c traefik-new.json > traefik-new.gzip +curl --request PUT --data-binary @traefik-new.gzip http://127.0.0.1:8500/v1/kv/traefik/acme/account/object +``` -- cgit v1.2.3