summaryrefslogtreecommitdiffstats
path: root/doc/wks.texi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-12-04 10:31:42 +0100
committerWerner Koch <wk@gnupg.org>2018-12-04 15:31:41 +0100
commit602b1909632925d5a2e0778c102d66109795c627 (patch)
treeec5b8247cce666b66af94951daae324db5320719 /doc/wks.texi
parentwks: Move a few server functions to wks-util. (diff)
downloadgnupg2-602b1909632925d5a2e0778c102d66109795c627.tar.xz
gnupg2-602b1909632925d5a2e0778c102d66109795c627.zip
wks: Add new commands --install-key and --remove-key to the client.
* tools/gpg-wks-client.c (aInstallKey, aRemoveKey, oDirectory): New. (opts): Add "--install-key", "--remove-key" and "-C". (parse_arguments): Parse them. (main): Check that the given directory exists. Implement the new commands. -- These commands maybe useful to prepare a WKD directory on a non-Unix box using the standard wks client. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'doc/wks.texi')
-rw-r--r--doc/wks.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/wks.texi b/doc/wks.texi
index 03d748255..021fe5bbb 100644
--- a/doc/wks.texi
+++ b/doc/wks.texi
@@ -90,6 +90,14 @@ decrypted MIME message. The result of these commands are another mail
which can be send in the same way as the mail created with
@option{--create}.
+The command @option{--install-key} manually installs a key into a
+local directory (see option @option{-C}) reflecting the structure of a
+WKD. The arguments are a file with the keyblock and the user-id to
+install. If the first argument resembles a fingerprint the key is
+taken from the current keyring; to force the use of a file, prefix the
+first argument with "./". The command @option{--remove-key} removes a
+key from that directory, its only argument is a user-id.
+
@command{gpg-wks-client} is not commonly invoked directly and thus it
is not installed in the bin directory. Here is an example how it can
be invoked manually to check for a Web Key Directory entry for
@@ -161,6 +169,13 @@ This program returns only the status messages SUCCESS or FAILURE which
are helpful when the caller uses a double fork approach and can't
easily get the return code of the process.
+@item -C @var{dir}
+@itemx --directory @var{dir}
+@opindex directory
+Use @var{dir} as top level directory for the commands
+@option{--install-key} and @option{--remove-key}. The default is
+@file{openpgpkey}.
+
@item --verbose
@opindex verbose
Enable extra informational output.