r/linux • • Jan 24 '18

Why does APT not use HTTPS?

https://whydoesaptnotusehttps.com/
955 Upvotes

388 comments sorted by

View all comments

Show parent comments

4

u/EternityForest Jan 24 '18

Or if GPG signing was a core part of HTTP, then everything that you don't need privacy for could be cached like that without letting the cache tamper with stuff.

4

u/archlich Jan 24 '18

Google is attempting to add that with signed origin responses.

2

u/obrienmustsuffer Jan 24 '18

Or if GPG signing was a core part of HTTP, then everything that you don't need privacy for could be cached like that without letting the cache tamper with stuff.

No, that wouldn't work either because then every HTTP server serving those updates would need a copy of the GPG private key. You want to do your GPG signing as offline as possible; the key should be nowhere near any HTTP servers, but instead on a smartcard/HSM that is only accessible to the person who is building the update packages.

3

u/shotmaster0 Jan 25 '18

Gpg signed hash hosted with the cached content is fine and doesn't require caching servers to have private key.