↓ Skip to main content
Security

SSL/TLS

·2 mins
Five stages of SSL/TLS: handshake, authentication, key exchange, encryption and integrity
Recreated in October 2026 from the post; the original image was lost

Secure Socket Layer and its successor TLS (Transport Layer Security) are cryptographic protocols that provide encryption, integrity, and authentication for network communication. They are commonly used to secure online transactions, such as those made in online banking, e-commerce, and other sensitive online transactions.

When SSL/TLS encryption is used, the data being transmitted is encrypted using a combination of a symmetric encryption algorithm and a public-key cryptography algorithm. The symmetric encryption algorithm is used to encrypt the data, while the public-key cryptography algorithm is used to securely exchange a key that is used for the symmetric encryption.

Here are the steps involved in SSL/TLS encryption:

  1. HandshakeHandshake: The SSL/TLS handshake is the initial communication between the client and server. During this phase, the server and client exchange information to establish a secure connection. This includes agreeing on the cryptographic protocol, exchanging public keys, and verifying digital certificates.
  2. Authentication: Once the client and server have exchanged information, they authenticate each other. The server authenticates the client by requesting a digital certificate, which the client presents. The server verifies the digital certificate to ensure the client is who it claims to be. The client also verifies the server’s digital certificate to ensure that it is communicating with the correct server.
  3. Key exchange: After authentication, the client and server exchange keys that will be used for symmetric encryption. The server sends a public key to the client, which the client uses to encrypt a random number that is used to generate a symmetric key. The symmetric key is then used to encrypt the data being transmitted between the client and server.
  4. Encryption: Once the symmetric key has been established, the data being transmitted is encrypted using the symmetric encryption algorithm. This ensures that the data is protected from eavesdropping and data tampering.
  5. Integrity: To ensure that the data has not been tampered with during transmission, SSL/TLS uses a message authentication code (MAC) to verify the integrity of the data. This ensures that the data has not been altered or corrupted in transit.

By using SSL/TLS encryption, organizations can ensure the confidentiality, integrity, and authenticity of their data, and safeguard against potential security breaches.

Author
Samarthya
Engineer, learner, tinkerer. This is my trophy shelf of everyday work and leisure.

Related

Handshake

·3 mins
Recreated in October 2026 from the post; the original image was lost The SSL/TLS handshake is the initial communication between the client and server in a SSL/TLS connection. The purpose of the handshake is to establish a secure connection between the client and server and to negotiate the cryptographic parameters for the session.

Cert-Manager: TLS for ingress

A common use-case for cert-manager is requesting TLS signed certificates to secure your ingress resources. cert-manager adds certificates and certificate issuers as resource types in Kubernetes clusters, and simplifies the process of obtaining, renewing and using those certificates. Installation # The easiest way is to use helm charts.

Trust Store: Apache Kafka

·4 mins
Recreated in October 2026 from the post; the original image was lost In Apache Kafka, trust store and keystore are essential components for ensuring secure communication between brokers, clients, and other services. In this blog post, we will discuss the concept of trust store and keystore in detail, their importance, and why we use them in Apache Kafka.