Dump ACME data from Traefik to certificates
Go to file
2019-02-24 16:19:36 +01:00
.gitignore chore: ignore binary. 2019-02-11 12:34:33 +01:00
.golangci.toml chore: update golangci-lint. 2019-02-18 14:34:40 +01:00
.goreleaser.yml chore: dyslexia 2019-02-11 12:42:20 +01:00
.travis.yml chore: fix flaky CI. 2019-02-20 11:01:17 +01:00
Dockerfile chore: Adds a Dockerfile. 2019-02-24 14:52:12 +01:00
dumper.go fix: inverted cert and key. 2019-02-24 14:24:38 +01:00
go.mod chore: dyslexia 2019-02-11 12:42:20 +01:00
go.sum chore: tidy. 2019-02-11 12:23:48 +01:00
LICENSE chore: adds License. 2019-02-11 05:29:33 +01:00
main.go feat: display dump tree. 2019-02-20 20:23:12 +01:00
Makefile chore: adds makefile and linter. 2019-02-11 05:29:04 +01:00
readme.md doc: replace broken Docker badge. 2019-02-24 16:19:36 +01:00
version.go feat: Birth. 2019-02-11 12:07:06 +01:00

traefik-certs-dumper

GitHub release Build Status Docker Information Go Report Card

Dump the content of the "acme.json" file from Traefik to certificates.

Usage:
  traefik-certs-dumper [command]

Available Commands:
  dump        Dump Let's Encrypt certificates from Traefik
  help        Help about any command
  version     Display version

Flags:
  -h, --help      help for certs-dumper
      --version   version for certs-dumper

Use "traefik-certs-dumper [command] --help" for more information about a command.
Dump the content of the "acme.json" file from Traefik to certificates.

Usage:
  traefik-certs-dumper dump [flags]

Flags:
      --crt-ext string   The file extension of the generated certificates. (default ".crt")
      --dest string      Path to store the dump content. (default "./dump")
      --domain-subdir    Use domain as sub-directory.
  -h, --help             help for dump
      --key-ext string   The file extension of the generated private keys. (default ".key")
      --source string    Path to 'acme.json' file. (default "./acme.json")

Examples

$ traefik-certs-dumper dump
dump
├──certs
│  └──my.domain.com.key
└──private
   ├──my.domain.com.crt
   └──letsencrypt.key

$ traefik-certs-dumper dump --domain-subdir=true
dump
├──my.domain.com
│  ├──certificate.crt
│  └──privatekey.key
└──private
   └──letsencrypt.key
$ traefik-certs-dumper dump --domain-subdir=true --crt-ext=.pem --key-ext=.pem
dump
├──my.domain.com
│  ├──certificate.pem
│  └──privatekey.pem
└──private
   └──letsencrypt.key
$ traefik-certs-dumper dump --source ./acme.json --dest ./dump/test
test
├──certs
│  └──my.domain.com.key
└──private
   ├──my.domain.com.crt
   └──letsencrypt.key