Go tool to export traefik ssl certificates https://hub.docker.com/r/rafi0101/traefik-ssl-certificate-exporter
  • Go 83%
  • Dockerfile 8.6%
  • Shell 8.4%
Find a file
2025-09-11 17:55:59 +08:00
.github/workflows Update go.yml 2025-09-11 17:55:59 +08:00
models Initial commit of the go tool 2021-06-16 22:46:07 +02:00
traefik Initial commit of the go tool 2021-06-16 22:46:07 +02:00
.dockerignore ADD docker image for this project 2021-06-24 18:43:17 +02:00
.gitignore Initial commit of the go tool 2021-06-16 22:46:07 +02:00
docker-compose.yml Update documentation for GHCR multi-architecture support 2025-09-11 09:21:16 +00:00
Dockerfile Add ARM64 container build and GHCR publishing workflow 2025-09-11 09:19:50 +00:00
entrypoint.sh feat: allow easier cert export on container start 2022-06-01 08:44:43 +00:00
go.mod Initial commit of the go tool 2021-06-16 22:46:07 +02:00
go.sum Initial commit of the go tool 2021-06-16 22:46:07 +02:00
LICENSE Initial commit 2021-06-13 09:47:56 +02:00
main.go CHG to write certificates only when changed 2021-06-23 21:48:45 +02:00
README.md Update documentation for GHCR multi-architecture support 2025-09-11 09:21:16 +00:00

Traefik SSL Certificate Exporter

Go Language PRWelcome

Built with ❤︎ by Raphael Ebner

Go tool to export traefik ssl certificates

The Docker container exports periodically the traefik ssl certificates and make them available in the certs/ folder

Content

Important:

This tool only works with Acmev2

Usage:

Command line:

go build && ./traefik-ssl-certificate-exporter --source traefik/acme.json --dest certs/

Docker:

Docker images available on:

See docker-compose.yml

Variables:

CLI Docker Default Value Description
--source - traefik/acme.json Input
--dest - certs/ Output
--owner CERT_OWNER_ID 0 (root) owner for the extracted cert/keys
--group CERT_GROUP_ID 0 (root) group for the extracted cert/keys
- CRON_TIME * * * * * cron time for the container to extract certs
- ON_START 1 (true) export certs on start

Input:

Your acme.json from traefik tls configuration

Output:

certs/
    example.com/
        cert.pem
        chain.pem
        fullchain.pem
        privkey.pem
    sub.example.com/
        cert.pem
        chain.pem
        fullchain.pem
        privkey.pem

Developed by

  • Raphael Ebner

License

MIT License

Copyright (c) 2021 Raphael Ebner

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.