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
0e44f587
Commit
0e44f587
authored
Feb 06, 2017
by
neilpang
Browse files
add stateless mode
parent
339a8ad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
0e44f587
...
@@ -41,6 +41,8 @@ NO_VALUE="no"
...
@@ -41,6 +41,8 @@ NO_VALUE="no"
W_TLS
=
"tls"
W_TLS
=
"tls"
MODE_STATELESS
=
"stateless"
STATE_VERIFIED
=
"verified_ok"
STATE_VERIFIED
=
"verified_ok"
BEGIN_CSR
=
"-----BEGIN CERTIFICATE REQUEST-----"
BEGIN_CSR
=
"-----BEGIN CERTIFICATE REQUEST-----"
...
@@ -63,6 +65,8 @@ _DEBUG_WIKI="https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh"
...
@@ -63,6 +65,8 @@ _DEBUG_WIKI="https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh"
_PREPARE_LINK
=
"https://github.com/Neilpang/acme.sh/wiki/Install-preparations"
_PREPARE_LINK
=
"https://github.com/Neilpang/acme.sh/wiki/Install-preparations"
_STATELESS_WIKI
=
"https://github.com/Neilpang/acme.sh/wiki/Stateless-Mode"
__INTERACTIVE
=
""
__INTERACTIVE
=
""
if
[
-t
1
]
;
then
if
[
-t
1
]
;
then
__INTERACTIVE
=
"1"
__INTERACTIVE
=
"1"
...
@@ -2973,7 +2977,9 @@ issue() {
...
@@ -2973,7 +2977,9 @@ issue() {
serverproc
=
"
$!
"
serverproc
=
"
$!
"
sleep
1
sleep
1
_debug serverproc
"
$serverproc
"
_debug serverproc
"
$serverproc
"
elif
[
"
$_currentRoot
"
=
"
$MODE_STATELESS
"
]
;
then
_info
"Stateless mode for domain:
$d
"
_sleep 1
else
else
if
[
"
$_currentRoot
"
=
"apache"
]
;
then
if
[
"
$_currentRoot
"
=
"apache"
]
;
then
wellknown_path
=
"
$ACME_DIR
"
wellknown_path
=
"
$ACME_DIR
"
...
@@ -4258,6 +4264,7 @@ Parameters:
...
@@ -4258,6 +4264,7 @@ Parameters:
--webroot, -w /path/to/webroot Specifies the web root folder for web root mode.
--webroot, -w /path/to/webroot Specifies the web root folder for web root mode.
--standalone Use standalone mode.
--standalone Use standalone mode.
--stateless Use stateless mode, see:
$_STATELESS_WIKI
--tls Use standalone tls mode.
--tls Use standalone tls mode.
--apache Use apache mode.
--apache Use apache mode.
--dns [dns_cf|dns_dp|dns_cx|/path/to/api/file] Use dns mode or dns api.
--dns [dns_cf|dns_dp|dns_cx|/path/to/api/file] Use dns mode or dns api.
...
@@ -4563,6 +4570,14 @@ _process() {
...
@@ -4563,6 +4570,14 @@ _process() {
_webroot
=
"
$_webroot
,
$wvalue
"
_webroot
=
"
$_webroot
,
$wvalue
"
fi
fi
;;
;;
--stateless
)
wvalue
=
"
$MODE_STATELESS
"
if
[
-z
"
$_webroot
"
]
;
then
_webroot
=
"
$wvalue
"
else
_webroot
=
"
$_webroot
,
$wvalue
"
fi
;;
--local-address
)
--local-address
)
lvalue
=
"
$2
"
lvalue
=
"
$2
"
_local_address
=
"
$_local_address$lvalue
,"
_local_address
=
"
$_local_address$lvalue
,"
...
...
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