Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
375f6101
Commit
375f6101
authored
May 15, 2017
by
neil
Committed by
GitHub
May 15, 2017
Browse files
Merge pull request #848 from Neilpang/dev
fix
https://github.com/Neilpang/acme.sh/issues/844
parents
6c1176f8
2844d73d
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
375f6101
...
...
@@ -1244,17 +1244,20 @@ createDomainKey() {
fi
domain
=
$1
length
=
$2
_cdl
=
$2
if
[
-z
"
$
length
"
]
;
then
if
[
-z
"
$
_cdl
"
]
;
then
_debug
"Use DEFAULT_DOMAIN_KEY_LENGTH=
$DEFAULT_DOMAIN_KEY_LENGTH
"
length
=
"
$DEFAULT_DOMAIN_KEY_LENGTH
"
_cdl
=
"
$DEFAULT_DOMAIN_KEY_LENGTH
"
fi
_initpath
"
$domain
"
"
$
length
"
_initpath
"
$domain
"
"
$
_cdl
"
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
if
[
"
$IS_RENEW
"
]
;
then
_info
"Domain key exists, skip"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment