Skip to content

techtrendings.com

Let's explore

Menu
Menu

How TLS Works

Posted on January 18, 2023January 18, 2023 by Avidlearner

TLS (Transport Layer Security) is a security protocol that is used to establish a secure communication channel between two systems, typically a web server and a web client (such as a web browser).

Here is a high-level overview of how the TLS Handshake works:

  1. The client sends a “ClientHello” message to the server, which includes a list of supported cryptographic protocols and a random number called the client random.
  2. The server responds with a “ServerHello” message, which includes the selected cryptographic protocol and a random number called the server random. It also includes the server’s digital certificate, which is used to establish the server’s identity.
  3. The client verifies the server’s certificate and generates a session key, which is used to encrypt the rest of the communication. The client sends the session key to the server, encrypted with the server’s public key.
  4. The server uses its private key to decrypt the session key and both client and server are now able to communicate securely using the session key.
  5. The server will send a “ServerHelloDone” message to the client indicating that the handshake is complete.
  6. Finally the client will send a “ClientHelloDone” message.


    During the communication, the data is encrypted using the session key and integrity is maintained by verifying that the message has not been tampered with by using a message authentication code (MAC). The encryption and integrity verification done by the session key is called as symmetric encryption.
    This process, called the TLS Handshake, helps to establish an encrypted, authenticated connection between the two systems, ensuring that the data exchanged between them is private and cannot be tampered with.

Related

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Implement Trie Data Structure in C++- LeetCode
  • How TLS Works
  • C++ – Factory Design Pattern – Creation Design Pattern
  • C++ – Strategy Design Pattern – Behavioral Design Pattern
  • LFU Cache Implementation – LeetCode

Recent Comments

  • automatically like friends photos on instagram on Program to find unpaired element in an Array in C++|Leetcode |techtrendings
  • Twicsy on Program to find unpaired element in an Array in C++|Leetcode |techtrendings

Archives

  • January 2023
  • November 2022
  • August 2022
  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022

Categories

  • Algorithm
  • Algorithm
  • C++
  • Design Patterns
  • Multithreading
  • OS Concepts
  • Programming
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Join Our Mailing List for the Latest News and Updates.

© 2023 techtrendings.com | Powered by Superbs Personal Blog theme