Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
41e3eafa
Commit
41e3eafa
authored
Apr 15, 2016
by
neil
Browse files
skip creating accountkey/domainkey if already existing
parent
937cbf6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
41e3eafa
...
@@ -321,7 +321,7 @@ createDomainKey() {
...
@@ -321,7 +321,7 @@ createDomainKey() {
return
0
return
0
else
else
_err
"Domain key exists, do you want to overwrite the key?"
_err
"Domain key exists, do you want to overwrite the key?"
_err
"
Set FORCE=1
, and try again."
_err
"
Add '--force'
, and try again."
return
1
return
1
fi
fi
fi
fi
...
@@ -1003,8 +1003,13 @@ issue() {
...
@@ -1003,8 +1003,13 @@ issue() {
usingApache
=
""
usingApache
=
""
fi
fi
createAccountKey
$Le_Domain
$Le_Keylength
if
[[
!
-f
"
$ACCOUNT_KEY_PATH
"
]]
;
then
if
!
createAccountKey
$Le_Domain
$Le_Keylength
;
then
_err
"Create account key error."
return
1
fi
fi
if
!
_calcjwk
"
$ACCOUNT_KEY_PATH
"
;
then
if
!
_calcjwk
"
$ACCOUNT_KEY_PATH
"
;
then
return
1
return
1
fi
fi
...
@@ -1038,9 +1043,11 @@ issue() {
...
@@ -1038,9 +1043,11 @@ issue() {
_info
"Skip register account key"
_info
"Skip register account key"
fi
fi
if
!
createDomainKey
$Le_Domain
$Le_Keylength
;
then
if
[[
!
-f
"
$CERT_KEY_PATH
"
]]
;
then
_err
"Create domain key error."
if
!
createDomainKey
$Le_Domain
$Le_Keylength
;
then
return
1
_err
"Create domain key error."
return
1
fi
fi
fi
if
!
createCSR
$Le_Domain
$Le_Alt
;
then
if
!
createCSR
$Le_Domain
$Le_Alt
;
then
...
...
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