rawmind0 / alpine-traefik

This image is the traefik base. It comes from rawmind/alpine-monit.
67 stars 54 forks source link

Generate SSL self-signed key on the fly #102

Closed EugenMayer closed 1 day ago

EugenMayer commented 6 years ago

Its way to critical to have an exposed priv/cert staticly in the image, use a generation method.

we could use this script easily https://github.com/EugenMayer/consul-docker-stability-tests/blob/master/acls/bin/server_tls.sh

i use it for several images like openldap and others to generate self signed certs on the fly

rawmind0 commented 6 years ago

By the moment, you could overwrite docker ssl key/cert with env variable TRAEFIK_SSL_KEY and TRAEFIK_SSL_CRT. But sure, may be a good alternative use key generator. :)