mirror of
https://github.com/SnowMB/traefik-certificate-extractor.git
synced 2025-01-19 06:19:33 +08:00
45 lines
1.0 KiB
Markdown
45 lines
1.0 KiB
Markdown
# Traefik Certificate Extractor
|
|
|
|
Tool to extract Let's Encrypt certificates from Traefik's ACME storage file.
|
|
|
|
## Installation
|
|
```
|
|
git clone https://github.com/DanielHuisman/traefik-certificate-extractor
|
|
cd traefik-certificate-extractor
|
|
```
|
|
|
|
## Usage
|
|
```
|
|
python3 extractor.py [directory]
|
|
```
|
|
Default directory is `./data`. The output directory is `./certs`.
|
|
|
|
## Docker
|
|
There is a Docker image available for this tool: [danielhuisman/traefik-certificate-extractor](https://hub.docker.com/r/danielhuisman/traefik-certificate-extractor/).
|
|
Example run:
|
|
```
|
|
docker run --name extractor -d -v /srv/extractor/data:/app/data -v /srv/extractor/certs:/app/certs danielhuisman/traefik-certificate-extractor
|
|
```
|
|
|
|
## Output
|
|
```
|
|
certs/
|
|
example.com/
|
|
cert.pem
|
|
chain.pem
|
|
fullchain.pem
|
|
privkey.pem
|
|
sub.example.nl/
|
|
cert.pem
|
|
chain.pem
|
|
fullchain.pem
|
|
privkey.pem
|
|
certs_flat/
|
|
example.com.crt
|
|
example.com.key
|
|
example.com.chain.pem
|
|
sub.example.nl.crt
|
|
sub.example.nl.key
|
|
sub.example.nl.chain.pem
|
|
```
|