WKD — Web Key Directory.

A way for OpenPGP tools to auto-discover keys by HTTPS. Encrypt to alice@example.com and your mail client can fetch Alice's public key directly from example.com — no keyserver lookup, no manual import. The most self-sovereign of the discovery mechanisms.

// definition

WKD (Web Key Directory) is an OpenPGP key-distribution mechanism specified in draft-koch-openpgp-webkey-service. A mail client encrypting to user@example.com queries a well-known HTTPS URL on example.com and downloads the user's public key from the domain operator.

What it is.

Standard OpenPGP keyservers (keys.openpgp.org and friends) act as third-party hubs — anyone can upload anyone's key (subject to email verification on modern servers), and anyone can look up keys by email or fingerprint. WKD takes a different approach: keys live at their home domain, served by the domain operator over HTTPS at a predictable URL.

The URL structure has two forms:

The hash is the Z-base-32-encoded SHA-1 of the lowercased localpart of the email (alice in the example). Mail clients try the Advanced URL first; if it doesn't resolve, they fall back to Direct.

What's served at that URL is the binary OpenPGP public key — not ASCII-armored, not wrapped in JSON, just the raw key bytes that the client can import directly.

Why it matters.

WKD is the most self-sovereign of the OpenPGP discovery mechanisms:

Limitations: you need a domain you control (or your domain operator has to support WKD). Personal Gmail / Outlook addresses can't host WKD entries themselves; the operator would have to support it. Most large mail providers don't.

// testing WKD with gpg
gpg --auto-key-locate=wkd --locate-keys alice@example.com # fetches Alice's key from example.com's WKD if configured curl -I https://example.com/.well-known/openpgpkey/hu/HASH # direct HTTP test — 200 means WKD is responding
// in PGPony The Import Key flow's Search by Email path tries WKD first — if the recipient's domain has WKD set up, PGPony fetches the key directly without going through a keyserver. Falls back to keys.openpgp.org if WKD doesn't return a key. The Decrypt tab can also auto-import a signer's key via WKD when verifying signatures from an unknown contact.

Related terms

Related guide

Get PGPony

Free OpenPGP encryption for iOS and Android. No accounts, no tracking.