Maybe a noob question: Why SSL/TLS certs are not decentralized? Is it not possible to set public key in DNS TXT record and have private key on the server. Would that not solve encryption? Why do we need SSL / TLS certs from a CA like LetsEncrypt?
Because (to a first approximation) nobody uses DNSSEC, which is required for DANE to work. The "why nots" of DNSSEC are many and varied, from reliability to low utility to vendor support.
I asked a cloudflare engineer this and the answer was a bit vague but amounted to the failure rate being something like 0.5% which was too high for the amount of TLS sessions being initiated all the time.
Although I always thought it would be a nice feature for security conscious folks to be able to ennable. Or go ahead and use it on more sensitive sites only, e.g. banks.
Which leads us back to needing caching, which needs a signatory, and a list of trusted signatory, which gets us back to certificate authorities. Gotcha :-).
Browser vendors weren't interested. They believed the additional latency of DNS lookups would impact customer conversion rates. DANE is catching on in the email world.
Why not use public key as IP.
Like yggdrasil-go, use `public_key.sha256.first_63_bit === ipv6[1..64]` (maybe some data error but here is how it works).
Well, yggdrasil is an overlay network, it can do that. But the ISP network cann't.
Maybe we all should move to an overlay network.
1. An txt record adds more time to the request, since you can't start the request before opening an tls connection.
2. The browser has to go through all the TXT records. My domains already have 4-5 TXT records.
3. The dns is still pretty much insecure. Dnssec is still not always available
Because you're reliant on the registrar and potentially a third party operator running the authoritative name servers? You're already reliant on those things, regardless of whether you want TLS or not.
I am a very big proponent of building things yourself (rather than using an off-the-shelf/existing solution that's similar) - whether that is tooling, or applications, or hosting your own services, and I'm particularly vocal about not making your business be shackled to specific services run by others (e.g. I'm of the opinion that offering exclusively "social login" is a huge red flag), and even I don't start complaining about "well this stack isn't really self hosted, you're still relying on the registrar for your domain!"
DNS is not decentralised. You pay some rentseeker for your domain. You might be happier with NFT based domain names? Even then it is not decentralised because whoever wins that mind battle is then the defacto king of that DNS. Unless it is done carefully to avoid early squatting and premine.
That's a funny thing to say, because (I think literally) every security advance in the WebPKI has come from browsers over the objection of CA operators. Like, you couldn't possibly get this wronger.