This commit is contained in:
John W. O'Brien 2018-02-15 13:43:14 +00:00 committed by GitHub
commit 36db5ac73d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -979,6 +979,8 @@ _createkey() {
fi fi
fi fi
(
umask 0077
if _isEccKey "$length"; then if _isEccKey "$length"; then
_debug "Using ec name: $eccname" _debug "Using ec name: $eccname"
${ACME_OPENSSL_BIN:-openssl} ecparam -name "$eccname" -genkey 2>/dev/null >"$f" ${ACME_OPENSSL_BIN:-openssl} ecparam -name "$eccname" -genkey 2>/dev/null >"$f"
@ -986,6 +988,7 @@ _createkey() {
_debug "Using RSA: $length" _debug "Using RSA: $length"
${ACME_OPENSSL_BIN:-openssl} genrsa "$length" 2>/dev/null >"$f" ${ACME_OPENSSL_BIN:-openssl} genrsa "$length" 2>/dev/null >"$f"
fi fi
)
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
_err "Create key error." _err "Create key error."