Support non-default gpg key
This commit is contained in:
parent
903c5c89ec
commit
ebb6fd3b46
3 changed files with 15 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.sig
|
||||
/local.mk
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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
11
README
|
@ -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>
|
||||
```
|
||||
|
|
Reference in a new issue