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
e6df1828
Commit
e6df1828
authored
Apr 21, 2019
by
neilpang
Browse files
fix
https://github.com/Neilpang/acme.sh/issues/2192
parent
9ff53fea
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
e6df1828
...
...
@@ -1006,10 +1006,20 @@ _createkey() {
if
_isEccKey
"
$length
"
;
then
_debug
"Using ec name:
$eccname
"
${
ACME_OPENSSL_BIN
:-
openssl
}
ecparam
-name
"
$eccname
"
-genkey
2>/dev/null
>
"
$f
"
if
_opkey
=
"
$(
${
ACME_OPENSSL_BIN
:-
openssl
}
ecparam
-name
"
$eccname
"
-genkey
2>/dev/null
)
"
;
then
echo
"
$_opkey
"
>
"
$f
"
else
_err
"error ecc key name:
$eccname
"
return
1
fi
else
_debug
"Using RSA:
$length
"
${
ACME_OPENSSL_BIN
:-
openssl
}
genrsa
"
$length
"
2>/dev/null
>
"
$f
"
if
_opkey
=
"
$(
${
ACME_OPENSSL_BIN
:-
openssl
}
genrsa
"
$length
"
2>/dev/null
)
"
;
then
echo
"
$_opkey
"
>
"
$f
"
else
_err
"error rsa key:
$length
"
return
1
fi
fi
if
[
"
$?
"
!=
"0"
]
;
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