aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--op_guide/traefik/fix_acme.md15
1 files changed, 15 insertions, 0 deletions
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
+```