DEV Community

Jarvish John
Jarvish John

Posted on

How TLS works ?

TLS

In TLS, the server has a public and private key. When a client connects, the server sends its public key through a certificate. The client verifies if the server is trusted. If valid, the client generates a session key and encrypts it using the server’s public key. The server decrypts it using its private key. Now both share the same session key and use it to securely exchange messages.

Top comments (0)