5 ms·
How to setup your own WKD server
- tptacek 7y agoWhy would you ever do this? Public ledgers of long-lived identity keys are an anti-pattern. They beg people to retain a single key, across all their devices, whose compromise is catastrophic.
- alex_young 7y agoForgive my curiosity, but what is a better solution? It seems like the alternative is delegating control of your identity to a central authority, which greatly increases the risk of compromise of many users all at once. Perhaps there's a third option I'm not considering.
- brnt 7y agoEmphemeral keys. Have a look at autocrypt.org
- alwillis 7y agoThere are more options, including using the domain name system, preferably using DNSSEC to securely sign the DNS resource records: https://slxh.nl/blog/2016/pgp-and-dns/ https://slxh.nl/blog/2016/pgp-and-dns/
- tptacek 7y agoPGP and DNS. A secure messaging system tied to a PKI controlled by world governments. What could possibly go wrong?
- alwillis 7y agoFrom https://easydns.com/blog/2015/08/06/for-dnssec/ https://easydns.com/blog/2015/08/06/for-dnssec/ The “government controlled PKI” criticism ignores the fact that traditional TLDs are a government controlled naming system. This is much worse than a government controlled PKI… The only way to escape governmental control is to use overlay networks, like Tor, and non-traditional TLDs, such as .bit and .p2p. But even if you choose a domain with a TLD that isn’t controlled by a government, you still need DNSSEC to securely delegate to a nameserver and to communicate application level cryptographic information.
- tptacek 7y agoThat is an argument - a bad, wrong one - in favor of DNSSEC over the WebPKI CA system. But PGP doesn't use the WebPKI either. DNSSEC makes even less sense here. No reasonable person would ever use DNSSEC to protect end-user PGP keys; that design would be incompetent on its face.
- alwillis 7y agoIf you store your PGP key in the DNS, then the entities that control the DNS can control your key. As for the trope of DNSSEC being a government controlled PKI, I can’t help you with that. The beauty of DNSSEC is its flexibility. For the paranoid, a zone operator using DNSSEC only has to trust themselves and nobody else by creating their own trust anchor. And of course, I control they keys and when they rollover, etc. But even under normal conditions, where you trust the root key and the chain of trust from it, nobody—not even the government—is going to break my ECC keys before they get rolled over. So there’s that.
- tptacek 7y agoIt's not so much a "trope" as a plainly evident fact.
- alwillis 7y agoNo reasonable person would ever use DNSSEC to protect end-user PGP keys; that design would be incompetent on its face. Don’t get it twisted. Nobody suggested protecting end-user PGP keys with DNSSEC. Because DNSSEC ensures the integrity of DNS records, a user that publishes their public key in the DNS using a CERT or PKA record (both defined in RFC 4398) or uses an OPENPGPKEY record as defined in RFC 7929, can be sure anyone who uses a DNSSEC-aware resolver (Google's 8.8.8.8, Cloudflare’s 1.1.1.1, Quad9’s 9.9.9.9) can confirm the integrity of these records. Exporting public keys to be published in the DNS has been supported by GnuPG for at least 10 years. Without DNSSEC, there’s no way to ensure the DNS records haven’t been tampered with. That seems particularly important for public keys. RFC 4398: https://www.rfc-editor.org/info/rfc4398 https://www.rfc-editor.org/info/rfc4398 RFC 7929: https://www.rfc-editor.org/info/rfc7929 https://www.rfc-editor.org/info/rfc7929
- deleted 7y ago[deleted]
- Squithrilve 7y agoWho said the keys need to be long lived in WKD? WKD just makes the key discovery easier based on email address, you can rotate your key as often as you want (just set the expiry date so clients check it). Also, I'm not sure if I get the "public ledger" part as WKD I just your own HTTPS server. It doesn't have anything in common with keyservers.