38 lines
917 B
Markdown
Raw Normal View History

2017-06-27 14:09:51 +02:00
# Traefik Certificate Extractor
2017-06-27 12:02:17 +02:00
Tool to extract Let's Encrypt certificates from Traefik's ACME storage file.
2017-06-27 14:09:51 +02:00
## Installation
```
git clone https://github.com/DanielHuisman/traefik-certificate-extractor
2017-06-27 14:29:41 +02:00
cd traefik-certificate-extractor
2017-06-27 14:09:51 +02:00
```
## Usage
```
python3 extractor.py [directory]
```
Default directory is `./data`. The output directory is `./certs`.
2017-06-27 14:29:41 +02:00
## 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
```
2017-06-27 14:09:51 +02:00
## Output
```
certs/
example.com/
cert.pem
chain.pem
fullchain.pem
privkey.pem
sub.example.nl/
cert.pem
chain.pem
fullchain.pem
privkey.pem
```