<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>The Wombelix Post - WKD</title><link href="https://dominik.wombacher.cc/" rel="alternate"/><link href="/feeds/tag_wkd.atom.xml" rel="self"/><id>https://dominik.wombacher.cc/</id><updated>2022-12-29T00:00:00+01:00</updated><entry><title>My GPG Key is now available via Web Key Directory (WKD)</title><link href="https://dominik.wombacher.cc/posts/my-gpg-key-is-now-available-via-web-key-directory-wkd.html" rel="alternate"/><published>2022-12-29T00:00:00+01:00</published><updated>2022-12-29T00:00:00+01:00</updated><author><name>Dominik Wombacher</name></author><id>tag:dominik.wombacher.cc,2022-12-29:/posts/my-gpg-key-is-now-available-via-web-key-directory-wkd.html</id><summary type="html">&lt;!-- SPDX-FileCopyrightText: 2023 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;First of all, what's &lt;strong&gt;WKD&lt;/strong&gt; and what's the benefit using it?
It's an easy way to retrieve GPG keys based on a given E-Mail address.
It improves the user experience  ... &lt;a class="read-more" href="/posts/my-gpg-key-is-now-available-via-web-key-directory-wkd.html"&gt; [read more]&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;!-- SPDX-FileCopyrightText: 2023 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;First of all, what's &lt;strong&gt;WKD&lt;/strong&gt; and what's the benefit using it?
It's an easy way to retrieve GPG keys based on a given E-Mail address.
It improves the user experience without leveraging any keyserver infrastructure.
And that's exactly why I decided to make my key available via WKD,
I think the whole keyserver concept is broken and I want to support a
decentralized approach that gives the user control of his data.&lt;/p&gt;
&lt;p&gt;So how to get it working? In a Nutshell, your public key has to be available in binary
format at a specific URL on your Domain. There are multiple ways to achieve that,
I decided to use Direct mode and just to export my key, name it appropriately,
created the necessary folders and upload it to my webserver.&lt;/p&gt;
&lt;p&gt;So far you could, and still can, find my latest GPG public key on my
&lt;a class="reference external" href="https://dominik.wombacher.cc/pages/contact.html"&gt;Contact&lt;/a&gt; page, you can now also retrieve it via &lt;em&gt;gpg&lt;/em&gt;
or other applications which support WKD, for example &lt;em&gt;Thunderbird&lt;/em&gt;.
For my mail address &lt;strong&gt;dominik&amp;#64;wombacher.cc&lt;/strong&gt;, the WKD URL is
&lt;code&gt;https://wombacher.cc/.well-known/openpgpkey/hu/i4spe47w9w9i1wncq7tpum5m4b81bko9&lt;/code&gt;,
the last part is the hash of my username &lt;strong&gt;dominik&lt;/strong&gt; and the actual public key file.&lt;/p&gt;
&lt;p&gt;There is a nice &lt;a class="reference external" href="https://metacode.biz/openpgp/web-key-directory"&gt;online tool&lt;/a&gt;
available to verify if the setup is correct.&lt;/p&gt;
&lt;p&gt;I had to do two other, minor, things to get all tests passed. 1/Creating an empty file
called &lt;strong&gt;policy&lt;/strong&gt; in the folder &lt;code&gt;/.well-known/openpgpkey/&lt;/code&gt;, 2/sending a CORS header via nginx:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
location /.well-known/openpgpkey/ {
  add_header Access-Control-Allow-Origin *;
}

&lt;/pre&gt;
&lt;p&gt;Afterwards everything was fine and my key available via WKD:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
Direct: key: https://wombacher.cc/.well-known/openpgpkey/hu/i4spe47w9w9i1wncq7tpum5m4b81bko9?l=dominik
Direct: found key: A6FB74CC95114AA977FFD04ACDDD24A5C0758945
Direct: Key contains correct User ID: Dominik Wombacher &amp;lt;dominik&amp;#64;wombacher.cc&amp;gt;
Direct: CORS header is correctly set up
Direct: Policy file is present

&lt;/pre&gt;
&lt;p&gt;I think WKD is a really nice approach and solves the problems that came up by using
keyservers, there are already lot of mail provider and applications which support it,
so I guess that's the future of GPG key distribution.&lt;/p&gt;
&lt;p&gt;Kudos to &lt;a class="reference external" href="https://www.kuketz-blog.de/gnupg-web-key-directory-wkd-einrichten/"&gt;kuketz-blog.de (german)&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://archive.today/2022.12.30-113149/https://www.kuketz-blog.de/gnupg-web-key-directory-wkd-einrichten/"&gt;[1]&lt;/a&gt;) and
&lt;a class="reference external" href="https://wiki.gnupg.org/WKD"&gt;wiki.gnupg.org&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20221224231449/https://wiki.gnupg.org/WKD"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2022.12.30-105157/https://wiki.gnupg.org/WKD"&gt;[2]&lt;/a&gt;),
my main sources to understand and setup WKD.&lt;/p&gt;
</content><category term="Misc"/><category term="GPG"/><category term="GnuPG"/><category term="WKD"/><category term="Web Key Directory"/></entry></feed>