From e05ac1f11df0e3ab15a000560bf570da3f2f760b Mon Sep 17 00:00:00 2001 From: Quentin Dreyer Date: Thu, 11 Mar 2021 20:18:57 +0100 Subject: [PATCH] Updated dnsapi (markdown) --- dnsapi.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dnsapi.md b/dnsapi.md index f0c8e07..5bf4f38 100644 --- a/dnsapi.md +++ b/dnsapi.md @@ -2639,6 +2639,26 @@ To issue a wildcard certificate, execute: acme.sh --issue --dns dns_ionos -d example.com -d *.example.com ``` +## 130. Using the Porkbun API + +Read [Getting Started](https://porkbun.com/api/json/v3/documentation) to learn how to create an API key. +Export your credentials as environment variables: + +``` +export PORKBUN_API_KEY="..." +export PORKBUN_SECRET_API_KEY="..." +``` + +To issue a certificate, execute: +``` +acme.sh --issue --dns dns_porkbun -d example.com -d www.example.com +``` + +To issue a wildcard certificate, execute: +``` +acme.sh --issue --dns dns_porkbun -d example.com -d *.example.com +``` + # Use custom API If your API is not supported yet, you can write your own DNS API.