Updated Stateless Mode (markdown)

master
neil 2017-02-06 21:46:53 +08:00
parent ce0d022a27
commit e72b14cc6d
1 changed files with 6 additions and 9 deletions

@ -4,7 +4,7 @@ Configure your webserver to respond statelessly to challenges for a given accoun
1. First get your account key thumbprint: 1. First get your account key thumbprint:
``` ```
root@ed:~# acme.sh --register-account root@ed:~# acme.sh --register-account
[Mon Feb 6 21:40:18 CST 2017] Registering account [Mon Feb 6 21:40:18 CST 2017] Registering account
[Mon Feb 6 21:40:19 CST 2017] Already registered [Mon Feb 6 21:40:19 CST 2017] Already registered
@ -18,29 +18,26 @@ Remember the the thumbprint in the last line:
2. Configure the nginx server to return the account key thumbprint: 2. Configure the nginx server to return the account key thumbprint:
``` ```
http { http {
... ...
server { server {
... ...
location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" { location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
default_type text/plain; default_type text/plain;
return 200 "$1.6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd"; return 200 "$1.6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd";
} }
... ...
} }
} }
``` ```
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
``` ```