A Simple HTTP Server to serve GNUWeeb's pgpkeys via Web Key Directory
Any OpenPGP client that supports WKD can use this server to fetch GNUWeeb's public key.
For example on gnupg v2.1.23 or above:
$ gpg --locate-key [email protected]
See the FAQ / WIKI for more information.
- Node.js v18.0.0 or above
- pnpm v8.0.0 or above
$ git clone https://github.com/GNUWeeb/pgpkeys-wkd-server.git
$ cd pgpkeys-wkd-server
$ pnpm install
Copy .env.example to .env and fill/edit the values
For GitHub webhook use application/json
and make sure to set the secret in the GitHub webhook settings and in the .env file.
Use /internal/updateHook
(see notes for details for full path) as a path. This only needs the push event.
$ pnpm start
OR use any other process manager.
You could use Docker and skip installing Node.js and pnpm and cloning the repo.
$ docker run -d -p 3000:3000 --env-file .env --name pgpkeys-wkd-server ghcr.io/gnuweeb/pgpkeys-wkd-server:latest
OR you can use docker compose yourself.
Make sure to map a URL prefix in https://<EMAIL_DOMAIN>/.well-known/openpgpkey
to the server (resulting path: https://<EMAIL_DOMAIN>/.well-known/openpgpkey/hu/<wkd hash>
).
For Docker, you can use something like watchtower to keep the server up to date.