No description
Find a file
2020-05-16 12:39:03 +02:00
defaults Initial commit 2019-09-30 01:46:14 +02:00
meta Initial commit 2019-09-30 01:46:14 +02:00
tasks Initial commit 2019-09-30 01:46:14 +02:00
templates cleanup old challanges 2020-05-14 22:14:54 +02:00
vars Initial commit 2019-09-30 01:46:14 +02:00
README.md added README 2020-05-16 12:39:03 +02:00

PowerDNS - Letsencrypt

This role extends the PowerDNS role with another backend to handle Letsencrypt challanges.

operation

We register a PowerDNS pipe backend and deploy a python script to serve it. The script is stored at /usr/local/bin/pdns.py. This script processes queries matching the regex ^_acme-challenge\\.. It can also be called directly with pdns.py <dns entry> <value> to add challanges, for example pdns.py "_acme-challenge.example.com" "R8aa0mt6cnCVLF6RHsSNxmDBzJffNCK6" Challanges older than two days are removed when a new entry is added.

parameters

All config is to be placed inside the powerdns dict in another dict called letsencrypthandler

# path to save the internaly used sqlite database to
dbpath: '/var/lib/powerdns/letsencrypt/challenges.sqlite'