Script opens acme.json file used by traefik and export it's content to output folder as *.cer and *.key files.
There is template acme.json file in input directory for demonstration purposes. It is added in .gitignore - feel free to modify or delete it.
Run app
go run traefik-certs-exporter.go --acmejson=/foo/acme.json --output=/bar/certs/acmejson- path to source fileoutput- path to directory for savind filesservice- if you run app like a service
acmejson=./input/acme.jsonoutput=./output
or just use compiled one from Dockerhub
docker run -v ${PWD}/input:/input -v ${PWD}/output:/output: docker.io/nett00n/traefik-certs-exporter:1.0.0All code in this repository is licensed under the terms of the MIT License. For further information please refer to the LICENSE file.
- Vladimir Budylnikov aka @nett00n
2022-2023, Yerevan, Tbilisi