Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DanielleHuisman/traefik-certificate-extractor
Tool to extract Let's Encrypt certificates from Traefik's ACME storage file. Traefik v1 only.
https://github.com/DanielleHuisman/traefik-certificate-extractor
Last synced: about 2 months ago
JSON representation
Tool to extract Let's Encrypt certificates from Traefik's ACME storage file. Traefik v1 only.
- Host: GitHub
- URL: https://github.com/DanielleHuisman/traefik-certificate-extractor
- Owner: DanielleHuisman
- License: mit
- Archived: true
- Created: 2017-06-27T10:02:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T09:27:40.000Z (over 4 years ago)
- Last Synced: 2024-04-13T19:24:50.430Z (9 months ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 54
- Watchers: 4
- Forks: 52
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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 input directory is `./data`. The output directories are `./certs` and `./certs_flat`. The certificate extractor will extract certificates from any JSON file in the input directory (e.g. `acme.json`), so make sure this is the same as Traefik's ACME directory.## 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/traefik/acme:/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
```