Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
2ee5d873
Commit
2ee5d873
authored
May 21, 2016
by
neil
Browse files
fix for the new let's encrypt format
parent
6cd3a8a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
2ee5d873
#!/usr/bin/env sh
#!/usr/bin/env sh
VER
=
2.2.
4
VER
=
2.2.
5
PROJECT_NAME
=
"acme.sh"
PROJECT_NAME
=
"acme.sh"
...
@@ -667,7 +667,7 @@ _send_signed_request() {
...
@@ -667,7 +667,7 @@ _send_signed_request() {
_debug2 body
"
$body
"
_debug2 body
"
$body
"
response
=
"
$(
_post
"
$body
"
$url
"
$needbase64
"
)
"
response
=
"
$(
_post
"
$body
"
$url
"
$needbase64
"
|
tr
-d
"
\r\n
"
)
"
responseHeaders
=
"
$(
cat
$HTTP_HEADER
)
"
responseHeaders
=
"
$(
cat
$HTTP_HEADER
)
"
...
@@ -1401,7 +1401,7 @@ issue() {
...
@@ -1401,7 +1401,7 @@ issue() {
MAX_RETRY_TIMES
=
30
MAX_RETRY_TIMES
=
30
fi
fi
while
[
"1"
]
;
do
while
true
;
do
waittimes
=
$(
_math
$waittimes
+ 1
)
waittimes
=
$(
_math
$waittimes
+ 1
)
if
[
"
$waittimes
"
-ge
"
$MAX_RETRY_TIMES
"
]
;
then
if
[
"
$waittimes
"
-ge
"
$MAX_RETRY_TIMES
"
]
;
then
_err
"
$d
:Timeout"
_err
"
$d
:Timeout"
...
@@ -1413,7 +1413,7 @@ issue() {
...
@@ -1413,7 +1413,7 @@ issue() {
_debug
"sleep 5 secs to verify"
_debug
"sleep 5 secs to verify"
sleep
5
sleep
5
_debug
"checking"
_debug
"checking"
response
=
"
$(
_get
$uri
)
"
response
=
"
$(
_get
$uri
|
tr
-d
"
\r\n
"
)
"
if
[
"
$?
"
!=
"0"
]
;
then
if
[
"
$?
"
!=
"0"
]
;
then
_err
"
$d
:Verify error:
$response
"
_err
"
$d
:Verify error:
$response
"
_clearupwebbroot
"
$_currentRoot
"
"
$removelevel
"
"
$token
"
_clearupwebbroot
"
$_currentRoot
"
"
$removelevel
"
"
$token
"
...
...
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