]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Update le.sh
authortombii <tombii@users.noreply.github.com>
Wed, 20 Jan 2016 07:57:57 +0000 (15:57 +0800)
committertombii <tombii@users.noreply.github.com>
Wed, 20 Jan 2016 07:57:57 +0000 (15:57 +0800)
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

diff --git a/le.sh b/le.sh
index a230e3922464e8879eed3031dd2e5a13dd9e604a..17b22f27890b7949a223f1d56498e194f9610cf4 100755 (executable)
--- 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