Comments (5)
yes indeed. for the first one is not necessary : for the second one I need a different file name.
from traefik-certs-dumper.
Thanks 😸 !
I added a Dockerfile inside the project and the images are available here: https://hub.docker.com/r/ldez/traefik-certs-dumper
from traefik-certs-dumper.
this is great ! This is a small script to create certificates to be used with tvial/docker-mailserver
I just tested.
I love when a plan comes together
#!/bin/sh
/usr/bin/traefik-certs-dumper dump \
--domain-subdir=true \
--source /acme.json \
--dest /dump/live
for f in in $(find /dump -name certificate.crt); do
cd $(dirname $f)
ln -s certificate.crt fullchain.pem
ln -s privatekey.key privkey.pem
cd -
done
Dockerfile :
FROM ldez/traefik-certs-dumper
COPY dump.sh /
RUN chmod +x /dump.sh
ENTRYPOINT [ "/dump.sh"]
and the associated docker-compose.yml
volumes:
- certs:
services:
certdump:
build: .
volumes:
- ./acme.json:/acme.json:ro
- certs:/dump
restart: "no"
the certs
volume can be mount as /etc/letsencrypt/live
from traefik-certs-dumper.
@abate I see that you change the extension.
for f in in $(find /dump -name certificate.crt); do
cd $(dirname $f)
ln -s certificate.crt fullchain.pem
ln -s privatekey.key privkey.pem
cd -
Have you try this:
$ traefik-certs-dumper dump --domain-subdir=true --dest /dump/live --crt-ext=.pem --key-ext=.pem
dump
├──my.domain.com
│ ├──certificate.pem
│ └──privatekey.pem
└──private
└──letsencrypt.key
from traefik-certs-dumper.
@abate I added an option to change the names (v1.5.0)
$ traefik-certs-dumper dump --dest /dump/live --domain-subdir=true --crt-name=fullchain --key-name=privkey -crt-ext=.pem --key-ext=.pem
live
├──my.domain.com
│ ├──fullchain.pem
│ └──privkey.pem
└──private
└──letsencrypt.key
from traefik-certs-dumper.
Related Issues (20)
- Dependabot wasn't able to update github.com/containous/traefik/v2
- filename of wildcard certificates with single quotes with docker HOT 8
- Dependabot can't parse your go.mod
- csr? HOT 1
- Nothing happens when I run this via docker-compose
- After dump of certificates is there anyway to have script change either owner (chown) and/or mode (chmod)? HOT 4
- Example fails, when you have more than one certresolver configured HOT 4
- Change clean behaviour HOT 4
- Add support for other certificate file standards HOT 10
- output folders empty
- Empty directories after running file command HOT 1
- acme.json unexpected EOF HOT 4
- Exporting sans wildcard cert into a file name, replacing star (*). HOT 3
- Docker issue with certain flags HOT 24
- Crypto Go :we are a research group to help developers build secure applications.
- make domain name as crt-name and key-name HOT 5
- I'm having difficulty converting the entrypoint compose for docker run ( GUI of unraid) HOT 7
- Add jq during build of the docker image
- Unknown Operand HOT 1
- Possible to export a subdomain from a wildcard domain? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from traefik-certs-dumper.