summaryrefslogtreecommitdiff
path: root/server-config/www.the-brannons.com/etc/lighttpd/handle-acme.lua
blob: b27d95f815ac05a47a3a6d16d1765c6b7d041883 (plain)
1
2
3
4
5
6
7
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