aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-11 15:09:45 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-11 15:09:45 +0100
commit2d943e29468994f618f1cc5ff784f6b7f510ce05 (patch)
tree96eae321a1fbdef01c8ac3717e32ae3ab9f2cd76 /doc.go
parentee94e50bd3374c455b11bae95258ca144573dae4 (diff)
Move comments into doc.go
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
+*/