From 3bf4bf1a446c24fffe65b0a4b3f16d5a8fa20c31 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Tue, 10 Oct 2023 09:43:02 +0300 Subject: [PATCH] knot cleanup: remove extracting of a key from a file: this is not needed. Remove unused KNOT_ZONE --- dnsapi.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/dnsapi.md b/dnsapi.md index fab80a7..9844113 100644 --- a/dnsapi.md +++ b/dnsapi.md @@ -609,14 +609,8 @@ zone: Finally, make the DNS server and TSIG Key available to `acme.sh` ```sh -export KNOT_SERVER="dns.example.com" -export KNOT_KEY=`grep \# /etc/knot/acme.key | cut -d' ' -f2` -``` - -and optionally (if you use challenge alias zone) - -```sh -export KNOT_ZONE="le.example.com" +export KNOT_SERVER='dns.example.com' +export KNOT_KEY='/etc/knot/acme.key' ``` Ok, let's issue a cert now: @@ -624,7 +618,7 @@ Ok, let's issue a cert now: ./acme.sh --issue --dns dns_knot -d example.com -d *.example.com ``` -The `KNOT_SERVER` and `KNOT_KEY` and `KNOT_ZONE` settings will be saved in `~/.acme.sh/account.conf` and will be reused when needed. +The `KNOT_SERVER` and `KNOT_KEY` settings will be saved in `~/.acme.sh/account.conf` and will be reused when needed.