about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-06-08 10:11:53 -0500
committerCase Duckworth2020-06-08 10:11:53 -0500
commit85cfdb99ce60296fbe1872926bf3844591ca4f26 (patch)
tree0285378ffce25c73f02644db40f6ff2d59d1b308
parentSpecify permissions (diff)
downloadbollux-85cfdb99ce60296fbe1872926bf3844591ca4f26.tar.gz
bollux-85cfdb99ce60296fbe1872926bf3844591ca4f26.zip
Notes for TOFU
-rw-r--r--wip/TOFU.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/wip/TOFU.txt b/wip/TOFU.txt new file mode 100644 index 0000000..3189adb --- /dev/null +++ b/wip/TOFU.txt
@@ -0,0 +1,5 @@
1TOFU
2<makeworld> It's basically what Bombadillo does. I store the hash of the raw cert, as well as its expiry date. Then for every request, I pass the cert to a function that tries to load the TOFU entry from storage. If it doesn't exist, then the current cert is saved. If the fingerprints match, everything's good. If they don't match, but the expiry date has passed, then the new cert is saved over top of the old one. Otherwise, something malicious has happened
3<makeworld> https://pastebin.com/xMsdE5D0
4<makeworld> acdw: That's the overview, and the text of my high level function that handles it
5<makeworld> It really wasn't that bad to do