Skip to content

Script for exporting traefik letsencrypt certs to files

License

Notifications You must be signed in to change notification settings

5mdt/traefik-certs-exporter

Repository files navigation

Traefik certs exporter

Run revive linters Build linux binaries Push to Dockerhub

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.

Usage

Run app

go run traefik-certs-exporter.go --acmejson=/foo/acme.json --output=/bar/certs/

Flags

  • acmejson - path to source file
  • output - path to directory for savind files
  • service - if you run app like a service

Defaults

  • acmejson=./input/acme.json
  • output=./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.0

Links

License

All code in this repository is licensed under the terms of the MIT License. For further information please refer to the LICENSE file.

Authors


2022-2023, Yerevan, Tbilisi