1
0
mirror of https://github.com/wmnnd/nginx-certbot synced 2023-04-20 18:47:46 +08:00

Switched back to 1024 RSA & renamed certbot.sh -> init-letsencrypt.sh

It is useless to use RSA 4096 self-signed certificate because it will be removed
This commit is contained in:
Yaroslav 2018-11-29 20:30:39 +04:00
parent 2a0b0c5bf2
commit 38c07f2fcb

View File

@ -43,8 +43,8 @@ for domain in "${domains[@]}"; do
echo "### Creating dummy certificate for $domain domain..."
path="/etc/letsencrypt/live/$domain"
docker-compose run --rm --entrypoint "openssl req -x509 -nodes -newkey rsa:4096 \
-days 10 -keyout '$path/privkey.pem' -out '$path/fullchain.pem' -subj '/CN=localhost'" certbot
docker-compose run --rm --entrypoint "openssl req -x509 -nodes -newkey rsa:1024 \
-days 1 -keyout '$path/privkey.pem' -out '$path/fullchain.pem' -subj '/CN=localhost'" certbot
done
echo "### Starting nginx ..."