by Spivak · 8y ago · 0 comments
* Websites are big and take a long time to download.
* They had previously solved this problem with a caching server but theirs broke with TLS.
The author is apparently unaware of the options they have.
* Run a proxy server that caches pages. Basically all software supports proxies. Secure and well understood. No PKI to manage. And you can allow access to the proxy with no TLS or get a public cert. Works very well with those old devices too.
* Run a HTTPS caching server and add the CA to the systems. Little more effort but transparent.
Sure, basically everything supports proxies. But if you're not running a MiTM attack the proxy doesn't see much. The proxy server gets CONNECT <domain> and relays the request without ever even getting the full URI for the requested resource, so it certainly can't cache it.
* Run a HTTPS caching server and add the CA to the systems.
I think there's several challenges here:
- This CA empowered MiTM attack isn't just proxying Wikipedia and other pubic sites anymore. It's also proxying banking information, and other things that should be secure. We've meaningfully reduced the security for everyone in that lab.
- Where previously a computer playing the part of the proxy could just sit between the computers and the internet at large, allowing new machines to be added at will. Now every new computer will need some operating system & browser specific setup work. Machines that move around (laptops, rasberry pis are super portable) will end up with a variety of random certs on them.
Even with a local SSL caching server, we're still looking much slower pages. The high ping & packet loss means that the extra requests required to set up the connection could add seconds of latency to even loading a page.
Do they really have the options you outlined? The author appears to dealing with a situation involving students in rural Uganda. It might not be as simple in that context as you suggest.
At the same time, I’d have to Google to figure it out, and I’d want to see if I could optimize for viewing new pages. I think optimizing new pages could also be really important for learning to code. Maybe mosh into a server with a fast, reliable connection and then use that server to access the web with lynx. The idea being that less data would need to be transferred between the mosh client and server than between the mosh server and website. I would suppose that every interaction like scrolling down would have some latency, but new page requests would have less latency. I’m not sure if bandwidth usage and latency would be good enough for their circumstances though.
Their problem is a real one, and I don't think we have a good solution for solving it.
It'd be nice if their problems could be solved without requiring gross hacks or degraded security.
Squid supports HTTPS caching, the TLS connection is terminated at the proxy and the client gets a cert from a locally trusted CA. This is not very trivial to configure but the Squid Wiki should get you through it.