From 31a5138b5d95864dc69e0844f506d6d61b8b0673 Mon Sep 17 00:00:00 2001 From: Gyorgy Berenyi Date: Wed, 6 Oct 2021 08:21:59 +0000 Subject: [PATCH] Fix registered account issue at acme.sh process. --- start.letsencrypt.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/start.letsencrypt.sh b/start.letsencrypt.sh index 31c0773..fbd684c 100755 --- a/start.letsencrypt.sh +++ b/start.letsencrypt.sh @@ -6,11 +6,11 @@ start_letsencrypt() { mkdir -p /acme.sh/$DOMAIN/ ; - acme.sh --register-account -m $email; + ACME_PARAMS="--issue --standalone --keylength 4096 -d $DOMAIN --cert-file /acme.sh/$DOMAIN/cert.pem --key-file /acme.sh/$DOMAIN/key.pem --fullchain-file /acme.sh/$DOMAIN/fullchain.pem" - if acme.sh --register-account -m $email | grep "Already registered" ; then + if acme.sh --register-account -m $email $ACME_PARAMS | grep 'Already registered' ; then - acme.sh -m $email --issue --standalone --keylength 4096 -d $DOMAIN --cert-file /acme.sh/$DOMAIN/cert.pem --key-file /acme.sh/$DOMAIN/key.pem --fullchain-file /acme.sh/$DOMAIN/fullchain.pem ; + acme.sh $ACME_PARAMS ; fi