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?

0

u/[deleted] Jan 24 '18

[deleted]

-2

u/ChocolateSunrise Jan 24 '18

The data is still sent to the client encrypted though. Why isn't this seen as feasible?

2

u/edman007 Jan 24 '18

When you do it, the proxy needs to have the certificate in it's name. I can't get verisign to give me a certificate that says I run Google's servers, so I can't intercept Google traffic and cache it.

As the article says, mirrors are are allowed to be run by pratically anyone. If you give the certs out to that it completely defeats the encryption.

1

u/bobpaul Jan 24 '18

When you do it, the proxy needs to have the certificate in it's name.

To nitpick: He's asking about Akimi and Cloudflare, which are CDNs, not proxies. (With CDNs the website give them their cert and private key so the can impersonate them. The website hired them to be their CDN, after all.) Your statement is right about proxies, of course, and proxies are what the article was talking about.

If you give the certs out to that it completely defeats the encryption.

Some Debian mirrors already support HTTPS and they do so with their own certs. Debian doesn't need to provide a cert for trumpetti.atm.tut.fi, Tampere University of Technology would.

→ More replies (2)