Module 66: Web Server Configuration

Lesson 4 of 5 · 15–25 minutes

TLS and HTTPS

🏠The everyday picture

A sealed envelope with an official stamp: nobody on the way can read or alter the letter, and the stamp proves who sent it. Plain HTTP is a postcard anyone can read.

📘What it really is

sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d crm.example.in

It needs a real domain pointing at a server reachable from the internet (not a lab-only name).

🖱️Try it

If you have a VPS and a domain or subdomain: point an A record at the VPS, set up the server block, and run Certbot. Visit the site over HTTPS, check the padlock, and run the SSL Labs test. (In a lab without a public address, read Certbot's documentation and note the steps; you'll do it for real in the Level 6 project.)

✅Quick check

What does HTTPS protect against?

Show the answer

Others reading or changing data in transit, and impersonating your site.

How do Let's Encrypt certificates stay valid?

Show the answer

They're renewed automatically by a scheduled job before they expire.

← PreviousReverse proxy to your API
ProLearners Assist