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
e4a552da
Commit
e4a552da
authored
Dec 27, 2015
by
neil
Browse files
fix the error message
parent
c767f3d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
e4a552da
...
...
@@ -175,7 +175,7 @@ _send_signed_request() {
response
=
"
$(
$CURL
-X
POST
--data
"
$body
"
$url
)
"
fi
responseHeaders
=
"
$(
cat
$CURL_HEADER
)
"
responseHeaders
=
"
$(
cat
$CURL_HEADER
|
sed
's/\r//g'
)
"
_debug responseHeaders
"
$responseHeaders
"
_debug response
"
$response
"
...
...
@@ -417,7 +417,7 @@ issue() {
_setopt
$DOMAIN_CONF
"Le_Keylength"
"="
"
$Le_Keylength
"
if
[
-z
"
$Le_LinkCert
"
]
;
then
response
=
"
$(
echo
$response
|
base64
-d
)
"
response
=
"
$(
echo
$response
|
sed
's/ //g'
|
base64
-d
)
"
_info
"Sign failed:
$(
echo
"
$response
"
|
grep
-o
'"detail":"[^"]*"'
)
"
return
1
fi
...
...
@@ -426,7 +426,6 @@ issue() {
_setopt
$DOMAIN_CONF
"Le_LinkIssuer"
"="
"
$Le_LinkIssuer
"
if
[
"
$Le_LinkIssuer
"
]
;
then
_get
"
$Le_LinkIssuer
"
echo
-----BEGIN
CERTIFICATE-----
>
$CA_CERT_PATH
curl
--silent
$Le_LinkIssuer
|
base64
>>
$CA_CERT_PATH
echo
-----END
CERTIFICATE-----
>>
$CA_CERT_PATH
...
...
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