Upload key to WKD from command line?

Werner Koch wk at gnupg.org
Thu Feb 14 08:01:53 CET 2019


On Sat,  9 Feb 2019 11:20, wolfgang.traylor at posteo.de said:

> I am looking for a simple solution just like `gpg --send-keys`, but for WKD.

Locate the gpg-wks-client binary.  On Windows it should be found via
$PATH but on Unix it is installed at one of this locations

  /usr/local/libexec/gpg-wks-client
  /usr/local/lib/gpg-wks-client
  /usr/libexec/gpg-wks-client
  /usr/lib/gpg-wks-client

On Unix you can also invoke it directly using:

  $(gpgconf --list-dirs libexecdir)/gpg-wks-client

To create a publishing request use

  gpg-wks-client --create --send FINGERPRINT USERID

For example with my key

  $(gpgconf --list-dirs libexecdir)/gpg-wks-client \
    --create --send AEA84EDCF01AD86C4701C85C63113AE866587D0A wk at gnupg.org

Which sends the request using the usual sendmail stub.  If you don't
have this installed, don't use --send in which case the command creates
a mail which somehow needs to be send off.

With this in your /etc/mailcap

--8<---------------cut here---------------start------------->8---
application/vnd.gnupg.wks; /usr/local/libexec/gpg-wks-client \
   -v --read --send; needsterminal; description=WKS message
--8<---------------cut here---------------end--------------->8---

you can then easily process the incoming challenge from the server if
you use a MUA which support mailcap (Mutt, Gnus, and probably many
more).


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20190214/aeeec323/attachment.sig>


More information about the Gnupg-users mailing list