mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-27 07:21:53 +00:00
make the fix for rsa key only
This commit is contained in:
parent
fe0bee21b0
commit
ae5a6d330d
11
acme.sh
11
acme.sh
@ -1122,14 +1122,9 @@ _createkey() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__traditional=""
|
|
||||||
if _contains "$(${ACME_OPENSSL_BIN:-openssl} help genrsa 2>&1)" "-traditional"; then
|
|
||||||
__traditional="-traditional"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if _isEccKey "$length"; then
|
if _isEccKey "$length"; then
|
||||||
_debug "Using ec name: $eccname"
|
_debug "Using ec name: $eccname"
|
||||||
if _opkey="$(${ACME_OPENSSL_BIN:-openssl} ecparam $__traditional -name "$eccname" -genkey 2>/dev/null)"; then
|
if _opkey="$(${ACME_OPENSSL_BIN:-openssl} ecparam -name "$eccname" -genkey 2>/dev/null)"; then
|
||||||
echo "$_opkey" >"$f"
|
echo "$_opkey" >"$f"
|
||||||
else
|
else
|
||||||
_err "error ecc key name: $eccname"
|
_err "error ecc key name: $eccname"
|
||||||
@ -1137,6 +1132,10 @@ _createkey() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_debug "Using RSA: $length"
|
_debug "Using RSA: $length"
|
||||||
|
__traditional=""
|
||||||
|
if _contains "$(${ACME_OPENSSL_BIN:-openssl} help genrsa 2>&1)" "-traditional"; then
|
||||||
|
__traditional="-traditional"
|
||||||
|
fi
|
||||||
if _opkey="$(${ACME_OPENSSL_BIN:-openssl} genrsa $__traditional "$length" 2>/dev/null)"; then
|
if _opkey="$(${ACME_OPENSSL_BIN:-openssl} genrsa $__traditional "$length" 2>/dev/null)"; then
|
||||||
echo "$_opkey" >"$f"
|
echo "$_opkey" >"$f"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user