Learn more about Russian war crimes in Ukraine.

How to cut out the CA middleman

SSL certificates work on trust: end users trust their browsers, and browsers trust “certificate authorities” (CAs) like Gandi. But the chain goes one step further: the CA trusts DNS. When you buy an SSL certificate for foo.com from a CA like Gandi, Gandi verifies that you foo.com by challenging you to modify the DNS for that domain. The ultimate trusted authority is not the CA; it is the Domain Name System.

There is therefore a much simpler alternative to SSL certificates, which cuts out the CA middleman: have the browser consult DNS directly. The browser already consults DNS for the server’s IP; we would additionally have the browser ask DNS for a public key for that domain. It would run like this:

  1. Company buys foo.com from the .com registrar.
  2. Company generates keypair.
  3. Company puts public key in foo.com DNS under a TXT record (or some new PUBKEY record).
  4. Company puts private key on server.
  5. Company points foo.com’s A record to the server’s IP.
  6. User visits foo.com in browser.
  7. Browser asks DNS for the A record and PUBKEY record for foo.com.
  8. Browser opens connection to the server, using server’s public key to establish shared secret.
  9. Browser and server communicate in a session.

Here, no Certificate Authorities are involved, but the user still has the same guarantees: it is talking in private to a server which is operated by the owner of foo.com.

What can computers do? What are the limits of mathematics? And just how busy can a busy beaver be? This year, I’m writing Busy Beavers, a unique interactive book on computability theory. You and I will take a practical and modern approach to answering these questions — or at least learning why some questions are unanswerable!

It’s only $19, and you can get 50% off if you find the discount code ... Not quite. Hackers use the console!

After months of secret toil, I and Andrew Carr released Everyday Data Science, a unique interactive online course! You’ll make the perfect glass of lemonade using Thompson sampling. You’ll lose weight with differential equations. And you might just qualify for the Olympics with a bit of statistics!

It’s $29, but you can get 50% off if you find the discount code ... Not quite. Hackers use the console!

More by Jim

Tagged . All content copyright James Fisher 2017. This post is not associated with my employer. Found an error? Edit this page.