From 5248c5177098a8a1365ef569119091ae20e6bbb6 Mon Sep 17 00:00:00 2001 From: tombii Date: Wed, 20 Jan 2016 15:57:57 +0800 Subject: [PATCH] Update le.sh If we regenerate the key by using FORCE=1 then we also need to regenerate the CSR, otherwise the key will not match the certificate. --- le.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/le.sh b/le.sh index a230e392..17b22f27 100755 --- a/le.sh +++ b/le.sh @@ -110,7 +110,7 @@ createCSR() { domainlist=$2 - if [ -f "$CSR_PATH" ] && [ "$IS_RENEW" ]; then + if [ -f "$CSR_PATH" ] && [ "$IS_RENEW" ] && ! [ "$FORCE" ]; then _info "CSR exists, skip" return fi