DEV Community

Ilyas Filali
Ilyas Filali

Posted on

How Does HTTPS Works?

In today's digital age, secure communication over the internet is more crucial than ever. Enter HTTPS, the protocol that keeps our online interactions safe and private. But how exactly does it work? Let's dive in and demystify this essential technology.

Image description

What is HTTPS?

HTTPS stands for Hypertext Transfer Protocol Secure. It's an extension of HTTP, the foundation of data communication on the World Wide Web. The 'S' at the end is the key difference – it means the entire communication between your browser and the website is encrypted.

Image description
This diagram illustrates the basic HTTPS process, showing the interaction between the client, server, and certificate authority.

The Key Players in HTTPS

  1. Client (Your Browser)
  2. Server (The Website)
  3. Certificate Authority (CA)

The HTTPS Process: Step by Step

1. SSL/TLS Handshake

When you type "https://" before a web address, you're telling your browser to initiate a secure connection. This kicks off what's known as the SSL/TLS handshake.

2. Server Authentication

The server sends its SSL certificate to your browser. This certificate contains the server's public key and is issued by a trusted Certificate Authority.

3. Certificate Verification

Your browser checks if the certificate is valid and issued by a trusted CA.

4. Key Exchange

Once verified, your browser and the server agree on a symmetric encryption key for that session.

5. Secure Communication

With the symmetric key established, all further communication is encrypted, ensuring privacy and integrity.

Why HTTPS Matters

  1. Privacy: Encrypts your data, preventing eavesdropping.
  2. Integrity: Ensures data hasn't been tampered with during transmission.
  3. Authentication: Verifies you're communicating with the intended website.

Image description
This diagram illustrates how data is encrypted during HTTPS communication, transforming readable text into encrypted data.

The Visible Signs of HTTPS

Next time you visit a website, look for these indicators of a secure HTTPS connection:

  • A padlock icon in the address bar
  • "https://" at the beginning of the URL
  • A green address bar (on some browsers, for sites with Extended Validation certificates)

By understanding how HTTPS works, you can better appreciate the security measures in place every time you browse the web. Stay safe out there!

Top comments (13)

Collapse
 
valvonvorn profile image
val von vorn

Do you still advice getting paid Extended Validation certificates, what extra benefit does it brings?

Collapse
 
nayetwolf profile image
Ilyas Filali

In the address bar, an Extended Validation (EV) certificate displays the company name, enhancing trust and credibility. However, for most sites, a Domain Validation (DV) or Organization Validation (OV) certificate is sufficient. EV certificates are particularly beneficial for businesses involved in sensitive transactions, as they provide additional assurance of the business's identity.

Collapse
 
valvonvorn profile image
val von vorn

But this needs to install the Waterfox version to make it works?

Do EV SSL Certificates still turn the Firefox address bar green in the latest browser versions

Why the SSL Certificate Green Bar No Longer Exists

support.mozilla.org/en-US/question...

Thread Thread
 
nayetwolf profile image
Ilyas Filali

No, you don't need Waterfox. Modern browsers, including Firefox, no longer display a green address bar for EV SSL certificates. You can find more details in the linked Mozilla support article

Thread Thread
 
heyeasley profile image
heyeasley 🍓🥭

Yes. Cool.

Collapse
 
heyeasley profile image
heyeasley 🍓🥭 • Edited

Nice. Well explained.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.