Support non-default gpg key

This commit is contained in:
Daniel Gröber 2022-02-08 23:23:17 +01:00
parent 903c5c89ec
commit ebb6fd3b46
3 changed files with 15 additions and 1 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
*.sig
/local.mk

View file

@ -6,7 +6,7 @@ check: $(patsubst %.zone,%.check,$(wildcard *.zone))
sign: $(patsubst %,%.sig,$(wildcard *.zone))
%.sig: %
gpg -o $@ --batch --yes --detach-sign $<
gpg $(GPG_FLAGS) -o $@ --batch --yes --detach-sign $<
.PHONY: check-clean
check-clean:
@ -23,3 +23,5 @@ clean:
FORCE:
.PHONY: FORCE
-include local.mk

11
README
View file

@ -18,3 +18,14 @@ SOA for the update to be applied sucessfully on the server side. Emacs does
this by default, just say'in.
Note: Knot handles DNSSEC signing on the server side.
Using a non-default GPG key
---------------------------
Create a file `local.mk` and specify GPG_FLAGS as follows:
```
# local.mk
GPG_FLAGS=--default-key=<YOUR KEY FINGERPRINT>
```