Merge pull request #677 from Neilpang/dev

fix https://github.com/Neilpang/acme.sh/issues/667#issuecomment-28262
This commit is contained in:
neil 2017-02-27 13:44:15 +08:00 committed by GitHub
commit 96c4bb7fd0

View File

@ -927,6 +927,15 @@ _createkey() {
_debug "Use length $length"
if ! touch "$f" >/dev/null 2>&1; then
_f_path="$(dirname "$f")"
_debug _f_path "$_f_path"
if ! mkdir -p "$_f_path"; then
_err "Can not create path: $_f_path"
return 1
fi
fi
if _isEccKey "$length"; then
_debug "Using ec name: $eccname"
$ACME_OPENSSL_BIN ecparam -name "$eccname" -genkey 2>/dev/null >"$f"