mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
fix format
This commit is contained in:
parent
1c35f46b45
commit
120cde169b
6
acme.sh
6
acme.sh
@ -3972,12 +3972,12 @@ $_authorizations_map"
|
|||||||
|
|
||||||
if [ "$(grep -- "$BEGIN_CERT" "$CERT_PATH" | wc -l)" -gt "1" ]; then
|
if [ "$(grep -- "$BEGIN_CERT" "$CERT_PATH" | wc -l)" -gt "1" ]; then
|
||||||
_debug "Found cert chain"
|
_debug "Found cert chain"
|
||||||
cat "$CERT_PATH" > "$CERT_FULLCHAIN_PATH"
|
cat "$CERT_PATH" >"$CERT_FULLCHAIN_PATH"
|
||||||
_end_n="$(grep -n -- "$END_CERT" "$CERT_FULLCHAIN_PATH" | _head_n 1 | cut -d : -f 1)"
|
_end_n="$(grep -n -- "$END_CERT" "$CERT_FULLCHAIN_PATH" | _head_n 1 | cut -d : -f 1)"
|
||||||
_debug _end_n "$_end_n"
|
_debug _end_n "$_end_n"
|
||||||
sed -n "1,${_end_n}p" "$CERT_FULLCHAIN_PATH" > "$CERT_PATH"
|
sed -n "1,${_end_n}p" "$CERT_FULLCHAIN_PATH" >"$CERT_PATH"
|
||||||
_end_n="$(_math $_end_n + 1)"
|
_end_n="$(_math $_end_n + 1)"
|
||||||
sed -n "${_end_n},9999p" "$CERT_FULLCHAIN_PATH" > "$CA_CERT_PATH"
|
sed -n "${_end_n},9999p" "$CERT_FULLCHAIN_PATH" >"$CA_CERT_PATH"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! _send_signed_request "${ACME_NEW_ORDER}" "{\"resource\": \"$ACME_NEW_ORDER_RES\", \"csr\": \"$der\"}" "needbase64"; then
|
if ! _send_signed_request "${ACME_NEW_ORDER}" "{\"resource\": \"$ACME_NEW_ORDER_RES\", \"csr\": \"$der\"}" "needbase64"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user