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:
parent
2a0b0c5bf2
commit
38c07f2fcb
@ -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 ..."
|
Loading…
x
Reference in New Issue
Block a user