aboutsummaryrefslogtreecommitdiff
path: root/op_guide/traefik/fix_acme.md
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-03-18 10:17:05 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-03-18 10:17:05 +0100
commit4ad6376aa85422aa733d37c1440b3d2ae2384761 (patch)
tree7618b2f79d8e4cce0525f2bd7767b582d6e196f8 /op_guide/traefik/fix_acme.md
parente197429531ee53d1f5960905b8bd8298d1416e4e (diff)
downloadinfrastructure-4ad6376aa85422aa733d37c1440b3d2ae2384761.tar.gz
infrastructure-4ad6376aa85422aa733d37c1440b3d2ae2384761.zip
Document how to repair Traefik/ACMEHEADmaster
Diffstat (limited to 'op_guide/traefik/fix_acme.md')
-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
+```