aboutsummaryrefslogtreecommitdiff
path: root/doc.go
blob: 5bd3a1a8dd2cbf121c97f3733e1df1184c96a0c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ACME client for admins
package acme

// Important header fields
//
// Replay-Nonce		each response, required for next request
// Link			links to next stage
// Retry-After		polling interval
// Location		next step
// Content-Location	cert

// Action		Request		Response
//
// Register		POST new-reg	201 -> reg
// Request challenges	POST new-authz	201 -> authz
// Answer challenges	POST challenge	200
// Poll for status	GET  authz	200
// Request issuance	POST new-cert	201 -> cert
// Check for new cert	GET  cert	200

/*
                              directory
                                  .
                                  .
      ....................................................
      .                  .                  .            .
      .                  .                  .            .
      V     "next"       V      "next"      V            V
   new-reg ---+----> new-authz ---+----> new-cert    revoke-cert
      .       |          .        |         .            ^
      .       |          .        |         .            | "revoke"
      V       |          V        |         V            |
     reg* ----+        authz -----+       cert-----------+
                        . ^                 |
                        . | "up"            | "up"
                        V |                 V
                      challenge         cert-chain
*/