From cc97c84013e4e8bdcbf49d22bdb5f373f47a8e08 Mon Sep 17 00:00:00 2001 From: Dan <36902356+danc403@users.noreply.github.com> Date: Wed, 28 Feb 2018 15:30:56 -0600 Subject: [PATCH] Added section 5a for pdns using mysql backend. --- dnsapi/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dnsapi/README.md b/dnsapi/README.md index 8c43806c..ba36b897 100644 --- a/dnsapi/README.md +++ b/dnsapi/README.md @@ -92,6 +92,22 @@ acme.sh --issue --dns dns_pdns -d example.com -d www.example.com The `PDNS_Url`, `PDNS_ServerId`, `PDNS_Token` and `PDNS_Ttl` will be saved in `~/.acme.sh/account.conf` and will be reused when needed. +## 5a. Use PowerDNS mysql backend to automatically issue cert + +First you need to login to your PowerDNS account to enable the API and set your API-Token in the configuration. + +https://doc.powerdns.com/md/httpapi/README/ + +``` +export PDNS_Url="http://ns.example.com:8081" +export PDNS_ServerId="localhost" +export PDNS_Token="0123456789ABCDEF" +export PDNS_Ttl=60 +``` + +Ok, let's issue a cert now: +``` +acme.sh --issue --dns dns_pdns-mysql -d example.com -d www.example.com ## 6. Use OVH/kimsufi/soyoustart/runabove API to automatically issue cert