From e97d59d89ec1826ea089f4f61e75781363d19f48 Mon Sep 17 00:00:00 2001 From: Dan <36902356+danc403@users.noreply.github.com> Date: Sat, 3 Mar 2018 10:11:54 -0600 Subject: [PATCH] Added section 5a Describes how to use dns_pdnsMysql.sh --- dnsapi/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dnsapi/README.md b/dnsapi/README.md index 8c43806c..478c341d 100644 --- a/dnsapi/README.md +++ b/dnsapi/README.md @@ -92,6 +92,20 @@ 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 set your host:user:pass:database in the configuration. +Make sure the following are in your records table: +INSERT INTO `records` (`domain_id`, `name`, `type`, `content`, `ttl`, `prio`, `change_date`) +VALUES ({your domain_id}, 'example.com', 'SOA', 'ns1.example.com.net admin.example.com 1 10800 3600 604800 3600', 120, NULL, 0), +({your domain_id}, '_acme-challenge.example.com', 'A', '{ipv4 address}', 60, NULL, 0), +({your domain_id}, '_acme-challenge.example.com', 'AAAA', '{ipv6 address}', 60, NULL, NULL, 'N', 0, NULL, 0), +({your domain_id}, 'example.com', 'CAA', '0 issue "letsencrypt.org"', 60, NULL, 0); + +Ok, let's issue a cert now: +``` +acme.sh --issue --dns dns_pdnsMysql -d example.com -d *.example.com +``` ## 6. Use OVH/kimsufi/soyoustart/runabove API to automatically issue cert