From e72b14cc6d86f7632bd8a155a72f753549adf017 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 6 Feb 2017 21:46:53 +0800 Subject: [PATCH] Updated Stateless Mode (markdown) --- Stateless-Mode.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Stateless-Mode.md b/Stateless-Mode.md index 5f80818..9965318 100644 --- a/Stateless-Mode.md +++ b/Stateless-Mode.md @@ -4,7 +4,7 @@ Configure your webserver to respond statelessly to challenges for a given accoun 1. First get your account key thumbprint: -``` + ``` root@ed:~# acme.sh --register-account [Mon Feb 6 21:40:18 CST 2017] Registering account [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: -``` + ``` http { ... server { - ... - location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" { default_type text/plain; return 200 "$1.6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd"; } - ... - } } - ``` - 3. Ok, you can issue cert now. -``` + ``` acme.sh --issue -d example.com --stateless ``` + + +