Fix rsa key size for dummy certificate

This commit is contained in:
Sergio Morillo 2023-01-30 12:12:08 +01:00
parent 36db2fa6c0
commit 244fc1e70b

View file

@ -31,7 +31,9 @@ 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:1024 -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