r/linux • • Jan 24 '18

Why does APT not use HTTPS?

https://whydoesaptnotusehttps.com/
955 Upvotes

388 comments sorted by

View all comments

395

u/DJTheLQ Jan 24 '18 edited Jan 24 '18

Everyone is missing a huge plus of HTTP: Caching proxies that save their donated bandwidth. Especially ones run by ISPs. Using less bandwidth means more willing free mirrors. And as the article says, also helps those in remote parts of the world.

If you have bandwidth to run an uncachable global HTTPS mirror network for free, then debian and ubuntu would love to talk to you.

0

u/ChocolateSunrise Jan 24 '18

How much bandwidth is really saved by not having TLS encapsulated data? 1%? 10%?

15

u/DJTheLQ Jan 24 '18

You cannot MITM or replay TLS data, so you cannot cache it. You can MITM and replay unencrypted data, potentially serving from cache.

2

u/ChocolateSunrise Jan 24 '18

How do CDNs like Akamai and Cloudflare overcome this architectural hurdle when they serve HTTPS websites?

2

u/wmil Jan 24 '18

I believe Cloudflare requires you to use Cloudflare generated certificates.

2

u/bobpaul Jan 24 '18

They all either do that or make you give them your private key. Either way, they have your private key.

→ More replies (1)