use something else for authentication.
CC: @silverwizard@convenient.email
@khm @silverwizard Without authentication of the server to the client, line encryption is largely meaningless because it's subject to MITM. All it can protect you against is purely passive attackers.
I'm not sure if this is what you meant by "as authentication".
@khm @silverwizard Uhh, that only affects stuff using those garbage CDNs. Which might be a lot, but it's certainly not everything.
@khm @silverwizard Like if course no cryptographic measure can protect you against a peer who's given Clownflare backdoor access to their end of your session.
So sites like that are not part of the discussion.
The question is whether the transport layer is protected between you and sites which are trustworthy. And this requires having a way to validate that the key you're presented with is actually their key.
You cannot just do authentication as a separate layer once you're connected. That does not establish that there's not already a MITM. It needs to happen at the transport layer.
@khm @silverwizard You either need a second layer of authenticated encryption inside the TLS with unauthenticated key, or you need some sort of coupling between the layers (I would deem this very bad design) where you go back and look at the key the TLS session was established with and validate it based on data communicated at the application layer, before transferring anything sensitive.
I deem this *extremely* bad security design, because it means the application layer is parsing protocol data from an untrusted source, and now is attack surface not just for a malicious server, but for any MITM actor.
In any case, it's also incompatible with the document request model of the web. Which you might deem to be a bad model, but it's what we have.
@khm @dalias @silverwizard "use something else for authentication" is doing all the heavy lifting here...