From a48e6de603c3a312f02b1b5fdb813032eeae9074 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 5 Oct 2015 17:44:20 +0200 Subject: dirmngr: Add option --keyserver. * dirmngr/dirmngr.c (oKeyServer): New. (opts): Add "keyserver". (parse_rereadable_options): Parse that options (main): Add option to the gpgconf list. * dirmngr/dirmngr.h (opt): Add field "keyserver". * dirmngr/server.c (ensure_keyserver): New. (make_keyserver_item): New. Factored out from (cmd_keyserver): here. Call ensure_keyserver. (cmd_ks_search): Call ensure_keyserver. (cmd_ks_get): Ditto. (cmd_ks_fetch): Ditto. (cmd_ks_put): Ditto. -- This option specifies the keyserver to be used if the client does not set another keyserver. We want to fade out the use of --keyserver in gpg.conf in favor of specifying it here. Signed-off-by: Werner Koch --- doc/dirmngr.texi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'doc') diff --git a/doc/dirmngr.texi b/doc/dirmngr.texi index 7757acf10..a5bcc73d9 100644 --- a/doc/dirmngr.texi +++ b/doc/dirmngr.texi @@ -242,6 +242,25 @@ This options is not yet functional! It will eventually switch GnuPG into a TOR mode to route all network access via TOR (an anonymity network). +@item --keyserver @code{name} +@opindex keyserver +Use @code{name} as your keyserver. This is the server that @command{gpg} +communicates with to receive keys, send keys, and search for +keys. The format of the @code{name} is a URI: +`scheme:[//]keyservername[:port]' The scheme is the type of keyserver: +"hkp" for the HTTP (or compatible) keyservers, "ldap" for the LDAP +keyservers, or "mailto" for the Graff email keyserver. Note that your +particular installation of GnuPG may have other keyserver types +available as well. Keyserver schemes are case-insensitive. After the +keyserver name, optional keyserver configuration options may be +provided. These are the same as the global @option{--keyserver-options} +from below, but apply only to this particular keyserver. + +Most keyservers synchronize with each other, so there is generally no +need to send keys to more than one server. The keyserver +@code{hkp://keys.gnupg.net} uses round robin DNS to give a different +keyserver each time you use it. + @item --disable-ldap @opindex disable-ldap Entirely disables the use of LDAP. -- cgit v1.2.3