0
$\begingroup$

As far as I understand it, TLS creates a tunnel or channel or secure connection between the parties right? Where everything is protected? But hypothetically if the network gets breached, would the raw data/message sent from one client to another through a central server be readable? If someone gets inside the tunnel somehow, would they be able to see the raw data on the server?

$\endgroup$

1 Answer 1

3
$\begingroup$

As far as I understand it, TLS creates a tunnel or channel or secure connection between the parties right? Where everything is protected?

That is correct; TLS tries to protect the data being transmitted between the TLS client and the TLS server.

if the network gets breached, would the raw data/message sent from one client to another through a central server be readable?

Depends on how TLS is being used. If client A creates a TLS connection to a server, and client B creates a TLS connection to the same server, and client A sends data through the TLS connection to the server, which forwards the data to B via that TLS connection, then the server can obviously see the data in the clear; if the server is successfully attacked, then the attacker could potentially see that data.

After all, all TLS does is try to protect the data as it is being transmitted; if an attacker can see the data before it gets into the TLS tunnel or after it leaves it, well, it's not TLS's problem.

On the other hand, if client A sets up a TLS connection to client B (with one of the two sides acting as a TLS server - TLS negotiation demands that one of the two sides take the server role), then any data sent through the TLS connection between A and B is secure (assuming, of course, that clients A and B are secure).

$\endgroup$
1
  • $\begingroup$ Thanks for the clear answer! $\endgroup$ Commented Aug 3, 2022 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.