Module 76: API and Network Security

Lesson 2 of 5 · 15–25 minutes

TLS everywhere

🏠The everyday picture

Sending valuables by registered, sealed courier for the whole journey, not just the first leg, then by open cart for the rest.

📘What it really is

🖱️Try it

Run the SSL Labs test on your HTTPS site and reach an A. Check your API's database connection string uses TLS when the database isn't on the same machine. Search your code and configuration for rejectUnauthorized, NODE_TLS_REJECT_UNAUTHORIZED and http:// URLs to outside services, and fix any you find.

✅Quick check

Why is turning off certificate verification dangerous?

Show the answer

It removes the proof of who you're talking to, so an attacker in the middle could read or change the traffic.

Does traffic between Nginx and an API on 127.0.0.1 need TLS?

Show the answer

Usually not, because it never leaves the server.

← PreviousFirewalls and network layers
ProLearners Assist