Skip to content
Khalisa
All posts

1 min read

Draft

Leaf, Intermediate, and Root Certificate. TLS Details Simply Explained

A simple explanation of leaf, intermediate, and root certificates in TLS, their roles, and how they work together to establish secure connections.


During the weekend, I read about eMudhara's mistake on issuing literally the number 4 for its private key. That got me researching more about TLS, and I found out that the process is actually quite interesting and not as simple as I thought. In this blog, we will explore TLS in detail without any technical prerequisites. We will go from the top level to the rock bottom concept.

What is TLS?

TLS is a protocol that ensures the data you sent can't be read nor modified by other parties. If you see a website with a padlock icon or HTTPS in the url, it means that the website uses TLS.

To put it simply, TLS encrypts the data being sent between the client and the server. A human wouldn't be able to read the data, as it will just look like random characters. It can only be decrypted or translated into the normal language with a private key that only the client and server have.

A key is a piece of information that is used to encrypt and decrypt data. It is like a password that only the client and server know. There's a public key and there's a private key.

Reading materials

Understanding Public and Private Keys — The Foundation of Digital Security

Request Without TLS

Request With TLS

How TLS Works

Where is the Root Certificate?

How does CA work?

How does leaf certificate work?

Conclusion