LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   https and proxy (https://www.linuxquestions.org/questions/linux-networking-3/https-and-proxy-4175652368/)

qrange 04-18-2019 07:43 AM

https and proxy
 
if i understood correctly, proxy is useless for https site, as every user gets different encrypted data?

more and more sites seem to use it, but is that good option in all cases?

could there be some other method for 'signing' websites, but so they are not encrypted, only verified with some hashes or something?

if not, unicast seems to be 'enforced'. i think multicast has many advantages over it.

thanks.

smallpond 04-19-2019 10:00 AM

Squid proxies support HTTPS by decrypting and re-encrypting. Browser must be configured to trust Squid's certificate.

https://wiki.squid-cache.org/Features/SslBump

qrange 04-19-2019 10:19 AM

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.

sevendogsbsd 04-19-2019 10:27 AM

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.

scasey 04-19-2019 03:51 PM

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.

sevendogsbsd 04-20-2019 07:16 AM

Quote:

Originally Posted by scasey (Post 5986756)
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.

Exactly.

qrange 04-21-2019 01:44 AM

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'.

smallpond 04-21-2019 10:32 AM

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.

sevendogsbsd 04-22-2019 08:46 AM

Quote:

Originally Posted by qrange (Post 5987121)
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.


All times are GMT -5. The time now is 12:44 PM.