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
120cde16
Commit
120cde16
authored
Jan 27, 2018
by
neilpang
Browse files
fix format
parent
1c35f46b
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
120cde16
...
...
@@ -3972,12 +3972,12 @@ $_authorizations_map"
if
[
"
$(
grep
--
"
$BEGIN_CERT
"
"
$CERT_PATH
"
|
wc
-l
)
"
-gt
"1"
]
;
then
_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
)
"
_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
)
"
sed
-n
"
${
_end_n
}
,9999p"
"
$CERT_FULLCHAIN_PATH
"
>
"
$CA_CERT_PATH
"
sed
-n
"
${
_end_n
}
,9999p"
"
$CERT_FULLCHAIN_PATH
"
>
"
$CA_CERT_PATH
"
fi
else
if
!
_send_signed_request
"
${
ACME_NEW_ORDER
}
"
"{
\"
resource
\"
:
\"
$ACME_NEW_ORDER_RES
\"
,
\"
csr
\"
:
\"
$der
\"
}"
"needbase64"
;
then
...
...
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