mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-16 21:53:21 +08:00
formatting issue with 3.
@@ -71,11 +71,8 @@ Configure your webserver to respond statelessly to challenges for a given accoun
|
|||||||
?>
|
?>
|
||||||
```
|
```
|
||||||
_NOTE that this approach uses PHP but something similar could be done with CGI, Perl, Ruby or pretty much any other server-side language._
|
_NOTE that this approach uses PHP but something similar could be done with CGI, Perl, Ruby or pretty much any other server-side language._
|
||||||
|
|
||||||
### HAPROXY
|
### HAPROXY
|
||||||
|
|
||||||
Add the http-request return rule to your configuration:
|
Add the http-request return rule to your configuration:
|
||||||
|
|
||||||
```
|
```
|
||||||
global
|
global
|
||||||
setenv ACCOUNT_THUMBPRINT '6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd'
|
setenv ACCOUNT_THUMBPRINT '6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd'
|
||||||
@@ -88,11 +85,9 @@ Configure your webserver to respond statelessly to challenges for a given accoun
|
|||||||
mode http
|
mode http
|
||||||
bind :80
|
bind :80
|
||||||
bind :443 crt /etc/haproxy/certs/
|
bind :443 crt /etc/haproxy/certs/
|
||||||
http-request return status 200 content-type text/plain lf-string "%[path,field(-1,/)].${ACCOUNT_THUMBPRINT}\n" if { path_beg '/.well-known/acme-challenge/' }```
|
http-request return status 200 content-type text/plain lf-string "%[path,field(-1,/)].${ACCOUNT_THUMBPRINT}\n" if { path_beg '/.well-known/acme-challenge/' }
|
||||||
|
```
|
||||||
|
|
||||||
3. Ok, you can issue cert now.
|
3. Ok, you can issue cert now.
|
||||||
|
|
||||||
```
|
```
|
||||||
acme.sh --issue -d example.com --stateless
|
acme.sh --issue -d example.com --stateless
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user