mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-27 07:21:53 +00:00
This commit is contained in:
parent
df037db0bb
commit
2844d73dc7
13
acme.sh
13
acme.sh
@ -1244,17 +1244,20 @@ createDomainKey() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
domain=$1
|
domain=$1
|
||||||
length=$2
|
_cdl=$2
|
||||||
|
|
||||||
if [ -z "$length" ]; then
|
if [ -z "$_cdl" ]; then
|
||||||
_debug "Use DEFAULT_DOMAIN_KEY_LENGTH=$DEFAULT_DOMAIN_KEY_LENGTH"
|
_debug "Use DEFAULT_DOMAIN_KEY_LENGTH=$DEFAULT_DOMAIN_KEY_LENGTH"
|
||||||
length="$DEFAULT_DOMAIN_KEY_LENGTH"
|
_cdl="$DEFAULT_DOMAIN_KEY_LENGTH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_initpath "$domain" "$length"
|
_initpath "$domain" "$_cdl"
|
||||||
|
|
||||||
if [ ! -f "$CERT_KEY_PATH" ] || ([ "$FORCE" ] && ! [ "$IS_RENEW" ]); then
|
if [ ! -f "$CERT_KEY_PATH" ] || ([ "$FORCE" ] && ! [ "$IS_RENEW" ]); then
|
||||||
_createkey "$length" "$CERT_KEY_PATH"
|
if _createkey "$_cdl" "$CERT_KEY_PATH"; then
|
||||||
|
_savedomainconf Le_Keylength "$_cdl"
|
||||||
|
_info "The domain key is here: $(__green $CERT_KEY_PATH)"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
if [ "$IS_RENEW" ]; then
|
if [ "$IS_RENEW" ]; then
|
||||||
_info "Domain key exists, skip"
|
_info "Domain key exists, skip"
|
||||||
|
Loading…
Reference in New Issue
Block a user