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
ae5a6d33
Commit
ae5a6d33
authored
Feb 15, 2021
by
neilpang
Committed by
Alexander Kulumbeg
Mar 21, 2021
Browse files
make the fix for rsa key only
parent
fe0bee21
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
ae5a6d33
...
@@ -1122,14 +1122,9 @@ _createkey() {
...
@@ -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() {
...
@@ -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
...
...
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