Make TLS certificate generation non-interactively, and make certificates valid for a longer time.
This commit is contained in:
parent
821eebe8c6
commit
5ddca3d9f4
|
@ -66,7 +66,7 @@ if [ ! -d "certs" ]; then
|
|||
fi
|
||||
|
||||
if [ ! -e "certs/traefik.crt" ]; then
|
||||
openssl req -x509 -newkey rsa:4096 -nodes -keyout certs/traefik.key -out certs/traefik.crt -days 365
|
||||
openssl req -x509 -newkey rsa:4096 -nodes -keyout certs/traefik.key -out certs/traefik.crt -days 3650 -subj "/CN=$HOST"
|
||||
fi
|
||||
|
||||
log INFO "Success - all prerequisites are met!"
|
||||
|
|
Loading…
Reference in New Issue