File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,38 @@ The HKP APIs are not documented here. Please refer to the [HKP specification](ht
5050
5151#### Accepted ` options ` parameters
5252* mr
53+ * wkd
5354
55+ ### Web Key Directory support
56+
57+ Web Key Directory support can be enabled by adding a rewrite rule to web server
58+ configured as a reverse proxy.
59+
60+ Example configuration for caddy webserver (for example.com domain),
61+
62+ ```
63+ openpgpkey.example.com {
64+ header /.well-known/openpgpkey/puri.sm/policy Content-Type text/plain
65+ respond /.well-known/openpgpkey/puri.sm/policy `protocol-version 5`
66+ route /.well-known/openpgpkey/example.com/hu/* {
67+ uri strip_prefix /.well-known/openpgpkey/example.com/hu/
68+ rewrite * /pks/lookup?op=get&search={uri}%40example.com&options=wkd
69+ reverse_proxy localhost:3000
70+ }
71+ }
72+
73+ openpgpkey.example.com DNS records should be pointing to the mailvelope keyserver.
74+ ```
5475#### Usage example with GnuPG
5576
5677```
5778gpg --keyserver hkps://keys.mailvelope.com --search info@mailvelope.com
5879```
5980
81+ If Web Key Directory is enabled,
82+ ```
83+ gpg --locate-keys info@mailvelope.com
84+ ```
6085## REST API
6186
6287### Lookup a key
You can’t perform that action at this time.
0 commit comments