4 ms·
Eh, I really wish there would be more pushback against HTTPS. It does include a lot of problems, including the reporting of browsing information through non-st
by marginalia_nu 5y ago
Eh, I really wish there would be more pushback against HTTPS.
It does include a lot of problems, including the reporting of browsing information through non-stapled OCSP, there's still major MITM-problems (yes, still; for example CloudFlare is huge-ass MITM), and no matter what this site claims, HTTPS is definitely still a lot slower than HTTP, even with HTTP/2; and it further makes it a lot easier to hide which data is extracted from a computer from the user. Encryption is great if you are using it, but it can also very much be used against you. The centralization it drives also creates unpleasant attack vectors for snooping governments.
I wish there was a way non-sensitive data could be transmitted plain-text, but signed with a server certificate. This solves many of the same problems, while avoiding many of the problems with HTTPS.
- mholt 5y ago> reporting of browsing information through non-stapled OCSP This is a client bug, IMO. And sensible servers like Caddy (and yes, before people complain about disclosure, I made it) staple OCSP automatically. > here's still major MITM-problems (yes, still; for example CloudFlare is huge-ass MITM), But optional (and often discouraged), not required! Separate issue. > HTTPS is definitely still a lot slower than HTTP, even with HTTP/2 That's just plain false across most dimensions. https://css-tricks.com/http2-real-world-performance-test-analysis/ https://css-tricks.com/http2-real-world-performance-test-ana... > it further makes it a lot easier to hide which data is extracted from a computer from the user That's a separate issue too; don't use clients you don't trust, period. And some big-name clients like Chrome let you dump keys to inspect data transfers locally. > I wish there was a way non-sensitive data could be transmitted plain-text, but signed with a server certificate. TLS supports a "NULL" cipher in certain cipher suites for signed-only transmissions, but mainstream server and client support are limited (for good reasons).
- marginalia_nu 5y ago> This is a client bug, IMO. And sensible servers like Caddy (and yes, before people complain about disclosure, I made it) staple OCSP automatically. As a client I don't get to choose how the servers interact with are configured. > But optional (and often discouraged), not required. Separate issue! Not at all a separate issue. The issue is the absolute fantasy that HTTPS makes your connection secure. > Don't use clients you don't trust, period. And some big-name clients like Chrome let you dump keys to inspect data transfers locally. Are you really telling me I have to implement every piece of software I want to run myself from scratch, write custom firmware for my processor, for my router, then sit down and create a custom ROM with a custom operating system for my phone?
- mholt 5y ago> As a client I don't get to choose how the servers interact with are configured. Clients are the ones that cause the privacy leak, not servers. > The issue is the absolute fantasy that HTTPS makes your connection secure. Oh, OK. > Are you really telling me I have to implement every piece of software I want to run myself from scratch, write custom firmware for my processor, for my router, then sit down and create a custom ROM with a custom operating system for my phone? If you don't trust them, then yes. Nothing new here though.
- marginalia_nu 5y ago> Clients are the ones that cause the privacy leak, not servers. Regardless of where the leak is, this is not a problem that exists in HTTP. You could not just go to a central server and gather a log of some NN% of the HTTP connections being made. No, DNS is not analogous. You can choose your DNS server, you can even run your own. > If you don't trust them, then yes. Nothing new here though. What's new is that it's become a lot harder to examine the information my software is sending to servers on the Internet. If they all talked HTTP, it would be trivial for me to intercept and examine. You can do that with HTTPS, sometimes, but it's a lot harder and relies on the software obeying OS proxy settings.
- waste_monk 5y agoYou probably want a layer 7 firewall that only allows HTTPS traffic to/from the internet to your terminating proxy. Stuff that doesn't obey the system proxy (or a few of the other pitfalls e.g. HPKP) will break, but at least you'd be aware of what's not allowing itself to be intercepted.
- SahAssar 5y ago> Not at all a separate issue. The issue is the absolute fantasy that HTTPS makes your connection secure. HTTPS is reasonably secure if the person in control of the domain is making sure it is reasonably secure. Setting up your whole domain to be MITM is not that. Your connection to whatever place the person in control of the domain has delegated your connection to is reasonably secure.
- mhitza 5y ago> That's just plain false across most dimensions. https://css-tricks.com/http2-real-world-performance-test-ana https://css-tricks.com/http2-real-world-performance-test-ana... I always feel like any performance claims are nowhere near my real life experience, not even when talking about synthetic benchmarks. For example I recently set up an Apache server that returned a 304 response, on an AWS t3.micro instance and with the Apache Benchmark tool I got around 3.5k[0] requests per second. Once I've enabled HTTPS that fell to around 500 requests per second. From what I've read at the time (because I was aware of the general consensus that they should have comparable performance), there is some type of underlying hardware feature the TLS decryption/encryption routine can use to speed things up, but it's only available in AWS in m3 type instances and above. Read it from a Mozilla (I think) article, that I couldn't find again right now. [0] that 3.5k/500 rps might be higher for you because I used maxminddb IP mapping on each requests which I'm sure adds some considerable factor to the rps.
- SahAssar 5y agoIf all your server does is respond with a single small no-body response, then yes http will be much quicker. If you do a somewhat normal page (even something considered small by current standards like 5-10 resources each being 10-ish kb) it will be a wash or http2 will be better.
- kadoban 5y agoRelying on microbenchmarks is always dangerous.
- naniwaduni 5y agoStill, it's not a great look when your claim that something is "just plain false" is readily disproved by the obvious microbenchmark. You can certainly argue that it doesn't matter, other factors mitigate it, &c., but at least then you can have the honest talk about how that's true and why you need encryption to make those optimizations. ... except that you don't, they're flagged behind https expressly to strongarm https implementation.
- mysterydip 5y agoIs there a layperson explanation for why https is faster than http? On the surface, "read file-> send to client" seems like less steps than "read file -> encrypt -> send to client"
- mholt 5y ago"Faster" is ambiguous, and there are a lot of factors involved. HTTPS isn't just "add encryption", it's also "do more at once and don't block as much" because HTTP/2 (a faster version of HTTP) only uses HTTPS in practice. You can discuss "HTTPS performance" in a purist way that makes it look slower than plain HTTP, but in practice (the only way that matters) HTTPS is faster than HTTP.
- singlow 5y agoI didn't see any claim that https is faster. If you benchmark https on a path where encryption is the only significant work being done, and on hardware that does not have encryption acceleration, then it will appear to be a lot slower. However, in real world applications the https encryption is usually accelerated by a dedicated processor feature, and the other work being done for a request is going to make the encryption time irrelevant. If you are serving static files over http, on a machine with an old cpu, with enough volume to saturate your cpu on http, then https will slow it down significantly. But typically, any server doing that will have 100x more capacity than it needs anyway.
- jedberg 5y agohttp/2 is faster (for various technical reasons but basically it sends multiple things at once better than old http) and http/2 requires security. So technically http/2 is faster, but it is only possible with https.
- SahAssar 5y ago> So technically http/2 is faster, but it is only possible with https. Because of arbitrary client restrictions. http/2 can be unencrypted, and would be faster unencrypted than encrypted. It's just that all servers/clients decided to not implement the optional unencrypted mode. I'm not arguing either way, but technically it is possible to do it without https.
- smileybarry 5y ago> TLS supports a "NULL" cipher in certain cipher suites for signed-only transmissions, but mainstream server and client support are limited (for good reasons). IIRC Windows Update used to do that in XP days, to guarantee responses were signed but to alleviate the pressure of encryption from the CDNs handling updates at the time. (When SSL/TLS was fairly heavy, and Windows Update traffic was 10s of % of internet traffic)
- d4mi3n 5y ago> I wish there was a way non-sensitive data could be transmitted plain-text, but signed with a server certificate. This solves many of the same problems, while avoiding many of the problems with HTTPS. Isn't this, more-or-less, HTTPS? I think you'd end up with something very similar as you'd likely need to solve the same problems HTTPS attempts to solve: 1. How do you know the authenticity of a message? You need some out of band channel of communication or trusted intermediary to verify anything you receive (e.g. a certifying authority) 2. How do you know when somebody's signature has changed? 3. When does a message expire? Can somebody replay a previous valid response? And stepping past a few of these implementation issues; how much overhead is HTTPS really? TLS is definitely a chatty protocol, but as I understand things that has more to do with TCP and the complexity of the CA system than the encryption itself. I like your idea of a faster HTTP variant that only guarantee message integrity rather than secrecy, but I myself can't see how you'd get there without implementing a lot of the things that makes HTTPS slower than vanilla HTTP.
- kadoban 5y agoYou can in fact do this with HTTPS, but you'd have to find a client and server that support it. There's choices of ciphers, and one of them is the "null" cipher I believe it's called. I'd be shocked if really anything supports it though, without configuring it on explicitly.
- Spivak 5y agoYou don't actually have to use OCSP if you're willing to accept that you might erroneously trust a revoked certificate. Having short cert lifetimes helps reduce the need for this unless you're really worried about security. There is no MITMing TLS that isn't explicitly allowed by the client (proxy) or server (reverse proxy). Nothing about TLS makes hiding data from the user any easier or harder. If you really wanted to hide your data extraction you would just encrypt the payload and then send it in "plain text." Centralization is the point where I agree with you, I would love to see browsers support a scheme where certs can be TOFU with a private CA.
- Cpoll 5y ago> and it further makes it a lot easier to hide which data is extracted from a computer from the user. I don't understand this argument. If the world was "HTTPS-optional" like it was 10 years ago, anything that wants to hide which data is extracted can still (optionally) implement HTTPS (or whatever encryption they please). So the only way this argument makes sense to me is if 'pushback against HTTPS' means ban encryption, and it seems to me that's not what you're saying. > The centralization it drives also creates unpleasant attack vectors for snooping governments. The internet is already heavily centralized around a couple of large IXes. Not having HTTPS will only make snooping governments' jobs easier. It doesn't matter to them whether their wiretaps are in CloudFlare's datacenter or in the IX next door, and they'd probably get greater coverage with the latter.