aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-05 19:54:46 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-05 19:54:46 +0100
commite70b9a7c2f36f75171406981fe152144b8cd2a93 (patch)
treee1ea2bd34c86f293890693dd0d6c4833351d0618 /README.md
parent7d89ef4cf8057c99e3f7c5a3c3e66ace775943d1 (diff)
Add some thoughts on flow
Diffstat (limited to 'README.md')
-rw-r--r--README.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1549b2b..38c64aa 100644
--- a/README.md
+++ b/README.md
@@ -37,3 +37,48 @@ LoadAccount(email string) -> --""--
Registration.Recover(?)
Regsitration.Authorize(domain []string) -> ([]Challange, []Combination)
Regsitration.Renew(domain []string) -> ([]Challange, []Combination)
+
+## Flow
+
+get directory -> urls, first nonce
+
+marshal, sign, post -> nonce, response, next
+
+## File structure (draft)
+
+file: account/\*
+ another@example.com
+ - private.key
+ - provider
+ - meta (ID) ?
+
+file: want/\* (yaml or toml)
+ [domain.tld]
+ - provider: letsencrypt/directory
+ - account: another@example.com
+ - domains: list of additonal domains (optional)
+
+file: certs/\*
+ cert/domain.tld
+file: private/\*
+ private/domain.tld
+file: tmp/\*
+ tmp/domain.csr ?
+
+## Use Flow
+
+Init: param(email)
+ Create and register account if there is none
+
+Periodic: (batch)
+ Check want files
+ if Cert is missing, request it
+ Walk through obtained certs and check for expire
+ if Expire aproaches, renew cert
+ Call hooks (reload webserver, etc.)
+
+Revoke: param(domain.tld)
+ handled separate
+
+Restore: param(email)
+ handled separate