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.
This commit is contained in:
tombii 2016-01-20 15:57:57 +08:00
parent 2bd7774b8f
commit 5248c51770

2
le.sh
View File

@ -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