Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
but isn't there a way to add 'digital signature' without encrypting everything?
like in PGP for email, where we can choose whether to encrypt message or just sign/verify it.
because, many sites, such as this forum or news sites and such don't really need full encryption.
they could encrypt only sha512 hashes of all files and send just that small data using ssl?
or encrypt 'upstream' data?
encryption takes some cpu cycles and isn't supported on many old systems.
The certificate for a web site is to provide a trust and so the transport can be encrypted. The content being trusted is irrelevant. Some sites use dynamic content and you can't hash or verify dynamic content because it doesn't really exist on disk.
As I understand it, https is about encryption, not about "signing" or "verifying" anything. That's why a self-signed certificate will still encrypt the data...still "work", although most modern browsers issue warnings because the signor (Certificate Authority) is not known. Still, a self-signed cert will encrypt the data for transfer.
As I understand it, https is about encryption, not about "signing" or "verifying" anything. That's why a self-signed certificate will still encrypt the data...still "work", although most modern browsers issue warnings because the signor (Certificate Authority) is not known. Still, a self-signed cert will encrypt the data for transfer.
even when dynamic content is used, most of it probably doesn't change too often.
and the data like images and such that take most bandwidth are usually 'static'.
It might be interesting to design a hybrid protocol which encrypts private data but not things like shared images. That would save CPU overhead and allow caching to work. Each request could decide to do either an HTTP GET, or an HTTPS GET depending on the link. It would require the browser to have two connections, one encrypted and one not, but would not require major protocol changes. An eavesdropper could still see what sites you visit, but could not access your private data.
even when dynamic content is used, most of it probably doesn't change too often.
and the data like images and such that take most bandwidth are usually 'static'.
True but most dynamic content doesn't actually exist on disk - it is generated on the fly so not sure how to accomplish "signing". Currently the only way to assure the site you are visiting is really the site you intended is the certificate that allows HTTPS. Encrypting web server content only protects against physical theft of the disk where the content is stored. This becomes problematic in a cloud or multi-tenant environment because no one really knows which actual physical disk contains the content.
I get there is a need to establish that the site I am hitting is exactly the site I intended but not sure there is any other way besides the web server certificate that allows HTTPS. Any file level encryption or signing/validating is going to take a great deal more resources that a simple HTTPS connection.
HTTPS is dead easy to implement and does not take very may resources.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.