From 38c07f2fcb1aaa8f3db1f626a2bd89f598ff63c5 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 29 Nov 2018 20:30:39 +0400 Subject: [PATCH] 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 --- certbot.sh => init-letsencrypt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename certbot.sh => init-letsencrypt.sh (95%) diff --git a/certbot.sh b/init-letsencrypt.sh similarity index 95% rename from certbot.sh rename to init-letsencrypt.sh index a6540a1..30cf9ae 100644 --- a/certbot.sh +++ b/init-letsencrypt.sh @@ -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 ..."