4 ms·
You can't separate encryption from authentication, and the application is the only thing that can tell you what qualifies as authentication. With IPSec you can
by lmm 12y ago
You can't separate encryption from authentication, and the application is the only thing that can tell you what qualifies as authentication.
With IPSec you can tell the OS "open an encrypted connection to 69.231.14.52" and the OS will verify that you're actually talking to 69.231.14.52 and no-one else can read your messages. But that's not actually terribly helpful, because what you want to ensure is that only Bob can read your messages. And only the application knows who Bob is.
- nothrabannosir 12y agoOk, what am I missing? Now: Application: Hey OS, what is example.com's IP? Okay, now give me an unencrypted connection to example.com's port 80. Desired: Hey OS, give me an encrypted connection to example.com's port 443. (+ optional encryption params like minimum key strength) Why can't encryption be an OS level task, exactly?
- lokedhs 12y agoBut what if you get a reply "I am example.com, here's the encrypted socket". How do you know that the entity that replied isn't in fact something that is MiTM you connection?
- nothrabannosir 12y agoSame as now. What is inherently anti-OS the way we use certificates? In fact, most apps already use OS-wide root ca lists.
- omphalos 12y ago> Same as now. Along similar lines, I think it's strange that I now see warnings in Chrome for SHA-1 certificates but no warnings at all for http.
- leni536 12y agoAnd firefox happily offers to save your password when you enter it into a http login window but yells at you if you try to connect to a self signed https webpage.
- lmm 12y agoHostname-based encryption only covers a small subset of use cases. If it's a web browser then sure, hostnames have become the way of doing that (although even then, browsers are starting to display the organization name in the top left alongside the URL). But for any kind of peer-to-peer program e.g. instant messaging or file sharing, hostnames are irrelevant; you care about the identity of the person on the other end, who's probably using a home connection that may not even have a public hostname (and will in any case change rapidly). Even for something as basic as email, you'd rather encrypt to a specific person than encrypt to gmail.com. So in short hostname-based authentication is mostly useful for web browsers - which is why it's in the web browser, not the OS. (Also, pragmatically, existing OS-based key management is terrible - just try and use the Windows dialogues to set up an SSL client certificate. For many users the very idea that you manage your keys separately from the programs you use them in is confusing. So browsers would rather provide their own cross-platform UI for key management, even if the OS offers a "managed SSL keystore" as most OSes do)
- nothrabannosir 12y agoI can't think of a network related app I ever used where hostname based auth wouldn't be a net plus. Mail, chat, web browsing, VPN, VNC, network filesystems, ... Not to say "as long as I know that it's the right host, all my encryption needs are satisfied!" Sure, sometimes you want more. But knowing I got the host matching the hostname would always help. As to the UI: Yes, but that's precisely because it is currently unclear who is responsible. Java has its own keystore, FF has its own but Chrome doesn't, even some libraries have their own or they don't, depending on the OS. It's a mess. A mess that I don't care about, as a user. I want a central key store that apps tap in to. When I revoke a cert for Diginotar, I don't want to have to grep every file in my entire filesystem for that string on the off chance some crazy statically linked lib installed a local cert store somewhere. And sure, an app wants to create a special case just for itself (e.g. a client certificate only for mail), let it. But I'd like that to be the exception, not the rule. Cert management is a mess right now, and both developers and users are duped.
- acdha 12y ago> I can't think of a network related app I ever used where hostname based auth wouldn't be a net plus You're exactly right on this – APIs need to be secure by default. Yes, I'm sure that that'd make some of the certificate management issues more pronounced but that's something we need to solve anyway; increasing the expectation that everything should be encrypted will only help.
- deleted 12y ago[deleted]
- amelius 12y agoWell, that's where certificates come into play. And managing those is a perfect job for the OS. You wouldn't want to deal with certificates and keychains and all the UI stuff that comes with it from within an application.
- foundart 12y ago> You can't separate encryption from authentication Why not? So you are saying these are our only 2 options? 1. I don't know who you are so we can't encrypt our conversation. 2. I know who you are so we can encrypt our conversation. Why is there not a third option? 3. I don't know who you are but we can still encrypt our conversation.
- icebraining 12y agoYou can, it's just that you don't know if the connection is actually encrypted from you to the person/machine you're talking to, or if there's someone in the middle silently spying on you and relaying the messages between the two. And by "someone," that doesn't necessarily mean an actual person specifically targeting you, it may just be an infected machine or router that snoops on everyone.
- snowwrestler 12y agoThere is option 3, for example with a self-signed certificate. That works well for talking to your own server. But if you're trying to reach some other site, how would you know if someone is pretending to be the site you're trying to reach? Encryption is not much use in protecting privacy, if your encrypted connection goes to an imposter. That's why authentication matters as much as encryption for surfing the web.
- foundart 12y agoI wouldn't. But if I'm using an unencrypted connection I know for sure that everything is readable all along the way. It seems to me that implicit in the argument against option 3 is the assumption that if we have a system in which encryption is not tied to authentication that the net will be filled with MITM attackers, thus effectively rendering option 3 identical to option 1. Is that a valid assumption?
- snowwrestler 12y agoYes. With modern tools MITM is akin to spam: almost no marginal cost, so even if it only hooks a few people, it's worth trying. Here are some examples: http://arstechnica.com/tech-policy/2013/04/how-a-banner-ad-for-hs-ok/ http://arstechnica.com/tech-policy/2013/04/how-a-banner-ad-f... http://gizmodo.com/gogo-is-using-man-in-the-middle-malware-tactics-on-its-1677559652 http://gizmodo.com/gogo-is-using-man-in-the-middle-malware-t... Keep in mind these are legitimate, professional ISPs doing this, so we're not even into criminal or state-level MITM attempts, let alone basic griefing tools like Firesheep. So yes, it is a valid assumption that the net is filled with MITM attackers.