Skip to content

Commit 6887805

Browse files
authored
Merge pull request #4067 from acmesh-official/dev
sync
2 parents 641f697 + 7f9074a commit 6887805

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

acme.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4382,10 +4382,6 @@ issue() {
43824382
_alt_domains=""
43834383
fi
43844384

4385-
if [ "$_key_length" = "$NO_VALUE" ]; then
4386-
_key_length=""
4387-
fi
4388-
43894385
if ! _on_before_issue "$_web_roots" "$_main_domain" "$_alt_domains" "$_pre_hook" "$_local_addr"; then
43904386
_err "_on_before_issue."
43914387
return 1
@@ -5327,6 +5323,10 @@ renew() {
53275323
Le_PostHook="$(_readdomainconf Le_PostHook)"
53285324
Le_RenewHook="$(_readdomainconf Le_RenewHook)"
53295325
Le_Preferred_Chain="$(_readdomainconf Le_Preferred_Chain)"
5326+
#when renew from an old version, the empty Le_Keylength means 2048
5327+
if [ -z "$Le_Keylength" ]; then
5328+
Le_Keylength=2048
5329+
fi
53305330
issue "$Le_Webroot" "$Le_Domain" "$Le_Alt" "$Le_Keylength" "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath" "$Le_PreHook" "$Le_PostHook" "$Le_RenewHook" "$Le_LocalAddress" "$Le_ChallengeAlias" "$Le_Preferred_Chain" "$Le_Valid_From" "$Le_Valid_To"
53315331
res="$?"
53325332
if [ "$res" != "0" ]; then
@@ -7087,8 +7087,8 @@ _process() {
70877087
_altdomains="$NO_VALUE"
70887088
_webroot=""
70897089
_challenge_alias=""
7090-
_keylength=""
7091-
_accountkeylength=""
7090+
_keylength="$DEFAULT_DOMAIN_KEY_LENGTH"
7091+
_accountkeylength="$DEFAULT_ACCOUNT_KEY_LENGTH"
70927092
_cert_file=""
70937093
_key_file=""
70947094
_ca_file=""

0 commit comments

Comments
 (0)