diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh index 077ae18..a3f3cb0 100755 --- a/init-letsencrypt.sh +++ b/init-letsencrypt.sh @@ -31,7 +31,7 @@ echo "### Creating dummy certificate for $domains ..." path="/etc/letsencrypt/live/$domains" mkdir -p "$data_path/conf/live/$domains" docker-compose run --rm --entrypoint "\ - openssl req -x509 -nodes -newkey rsa:2048 -days 1\ + openssl req -x509 -nodes -newkey rsa:$rsa_key_size -days 1\ -keyout '$path/privkey.pem' \ -out '$path/fullchain.pem' \ -subj '/CN=localhost'" certbot