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
bb2294e7
Commit
bb2294e7
authored
Jan 30, 2016
by
neil
Browse files
fix issue: do not re-generate domain key when call renew command
parent
137f5f8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
bb2294e7
#!/bin/bash
VER
=
1.1.
1
VER
=
1.1.
2
PROJECT
=
"https://github.com/Neilpang/le"
DEFAULT_CA
=
"https://acme-v01.api.letsencrypt.org"
...
...
@@ -104,7 +104,10 @@ createDomainKey() {
fi
_initpath
$domain
if
[
-f
"
$CERT_KEY_PATH
"
]
&&
!
[
"
$FORCE
"
]
;
then
if
[
!
-f
"
$CERT_KEY_PATH
"
]
||
(
[
"
$FORCE
"
]
&&
!
[
"
$IS_RENEW
"
]
)
;
then
#generate account key
openssl genrsa
$length
>
"
$CERT_KEY_PATH
"
else
if
[
"
$IS_RENEW
"
]
;
then
_info
"Domain key exists, skip"
return
0
...
...
@@ -113,9 +116,6 @@ createDomainKey() {
_err
"Set FORCE=1, and try again."
return
1
fi
else
#generate account key
openssl genrsa
$length
>
"
$CERT_KEY_PATH
"
fi
}
...
...
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