forked from Deuxfleurs/infrastructure
Document how to repair Traefik/ACME
This commit is contained in:
parent
e197429531
commit
4ad6376aa8
1 changed files with 15 additions and 0 deletions
15
op_guide/traefik/fix_acme.md
Normal file
15
op_guide/traefik/fix_acme.md
Normal file
|
@ -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
|
||||||
|
```
|
Loading…
Reference in a new issue