Custom script that you can use with win-acme to validate domains with a DNS challenge on a PowerDNS server using the PowerDNS API.
-
Create a new API key in PowerDNS and make sure it has correct access to the zone you want to validate. It has to be able to add and remove TXT records.
-
You will need to edit the script to point to the correct PowerDNS server and to use the correct API key.
- Download the script somewhere convenient and note the path
- Start win-acme and create a new certificate. Enter the domain name
- Choose the following challenge:
[dns-01] Create verification records with your own script
- Enter the path you noted in step 1
- Choose to use the same script for both creation and deletion.
- For
DnsCreateScriptArguments
enter the following
-Action create -ZoneName {ZoneName} -RecordName {RecordName} -Token {Token}
- For
DnsDeleteScriptArguments
enter the following
-Action delete -ZoneName {ZoneName} -RecordName {RecordName}
- Choose
Run everything one by one
- Follow the rest of the steps according to your own use-case / preference