From dafa16d433db77acf2a7c024f7e43c60e10cdeaa Mon Sep 17 00:00:00 2001 From: Janghyub Seo Date: Tue, 3 Nov 2020 12:13:25 +0900 Subject: [PATCH] Change dummy cert rsa size from 1024 to 2048 The recent version of nginx seems to require a certificate with at least 2048 bit rsa key. --- init-letsencrypt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh index 13eaa75..077ae18 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:1024 -days 1\ + openssl req -x509 -nodes -newkey rsa:2048 -days 1\ -keyout '$path/privkey.pem' \ -out '$path/fullchain.pem' \ -subj '/CN=localhost'" certbot