{"id":339,"date":"2020-05-20T11:20:56","date_gmt":"2020-05-20T10:20:56","guid":{"rendered":"http:\/\/blog.prolin.pl\/?p=339"},"modified":"2020-05-25T12:22:31","modified_gmt":"2020-05-25T11:22:31","slug":"generowanie-certyfikatow-przez-powerdns","status":"publish","type":"post","link":"https:\/\/blog.prolin.pl\/?p=339","title":{"rendered":"Generowanie certyfikat\u00f3w przez PowerDNS"},"content":{"rendered":"\n<p>First you need to login to your PowerDNS account to enable the API and set your API-Token in the configuration.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PDNS_Url=\"http:\/\/dnsadin.prolin.pl:8081\"\nexport PDNS_ServerId=\"localhost\"\nexport PDNS_Token=\"token\"\nexport PDNS_Ttl=60\n<\/code><\/pre>\n\n\n\n<p>Ok, let&#8217;s issue a cert now:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>acme.sh --issue --dns dns_pdns -d example.com -d www.example.com\n<\/code><\/pre>\n\n\n\n<p>The <code>PDNS_Url<\/code>, <code>PDNS_ServerId<\/code>, <code>PDNS_Token<\/code> and <code>PDNS_Ttl<\/code> will be saved in <code>~\/.acme.sh\/account.conf<\/code> and will be reused when needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First you need to login to your PowerDNS account to enable the API and set your API-Token in the configuration. Ok, let&#8217;s issue a cert now: The PDNS_Url, PDNS_ServerId, PDNS_Token and PDNS_Ttl will be saved in ~\/.acme.sh\/account.conf and will be reused when needed.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-339","post","type-post","status-publish","format-standard","hentry","category-bez-kategorii"],"_links":{"self":[{"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=339"}],"version-history":[{"count":2,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions"}],"predecessor-version":[{"id":345,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions\/345"}],"wp:attachment":[{"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}