add token support to script to support ssh forced commands with tokens
This commit is contained in:
parent
cd1e83b833
commit
7dcf71c3ab
4 changed files with 108 additions and 20 deletions
|
|
@ -1,13 +1,14 @@
|
|||
# PowerDNS - Letsencrypt
|
||||
|
||||
This role extends the PowerDNS role with another backend to handle Letsencrypt challanges.
|
||||
This role extends the PowerDNS role with another backend to handle Letsencrypt challenges.
|
||||
|
||||
## operation
|
||||
|
||||
We register a [PowerDNS pipe backend](https://doc.powerdns.com/authoritative/backends/pipe.html) 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.
|
||||
It can also be called directly with `pdns.py add_challenge <dns entry> <value>` to add challenges, for example `pdns.py add_challenge "_acme-challenge.example.com" "R8aa0mt6cnCVLF6RHsSNxmDBzJffNCK6"`
|
||||
Challenges older than two days are removed when a new entry is added.
|
||||
This can be automated using tokens (see `pdns.py --help`) and ssh forced commands.
|
||||
|
||||
## parameters
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue