summaryrefslogtreecommitdiff
path: root/server-config/www.the-brannons.com/etc/lighttpd/handle-acme.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-config/www.the-brannons.com/etc/lighttpd/handle-acme.lua')
-rw-r--r--server-config/www.the-brannons.com/etc/lighttpd/handle-acme.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/server-config/www.the-brannons.com/etc/lighttpd/handle-acme.lua b/server-config/www.the-brannons.com/etc/lighttpd/handle-acme.lua
new file mode 100644
index 0000000..b27d95f
--- /dev/null
+++ b/server-config/www.the-brannons.com/etc/lighttpd/handle-acme.lua
@@ -0,0 +1,8 @@
+# To the best of my knowledge, the thumbprint doesn't have to be
+# kept secret, so I'll let it all hang out, as it were:
+# Take the thing after /.well-known/acme-challenge/ from the path:
+ challenge = lighty.env["uri.path"]:sub(29)
+ret = challenge .. '.N0Jo0TsZjiLudJJSasZ2ZGMTrMRe6_44SywWheEZTk8'
+lighty.header["Content-Type"] = "text/plain"
+lighty.content = { ret }
+return 200