June 2025
Intermediate to advanced
837 pages
24h 50m
English
HTTP is an unencrypted protocol that poses the risk of a potential attacker eavesdropping on the communication between client and server and thus gaining possession of sensitive data. For this reason, most browsers also show in the address bar when a form is delivered over HTTP, especially with password entry. To switch a Node.js server from HTTP to HTTPS, only a few adjustments are required. In the following sections, you’ll learn how to secure the address book example step by step.
First, you need a certificate for encryption. For a product application, you should obtain a certificate from a trusted certificate authority. Alternatively, you can use a Let’s Encrypt certificate. ...
Read now
Unlock full access