Make TLS certificate generation non-interactively, and make certificates valid for a longer time.

This commit is contained in:
Martin Lablans 2022-05-12 18:21:16 +02:00
parent 821eebe8c6
commit 5ddca3d9f4
1 changed files with 1 additions and 1 deletions

View File

@ -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!"