aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go36
1 files changed, 36 insertions, 0 deletions
diff --git a/doc.go b/doc.go
index 0a3542b..5bd3a1a 100644
--- a/doc.go
+++ b/doc.go
@@ -1,2 +1,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
+*/