0
0
Expressframework~5 mins

HTTPS and SSL certificates in Express - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does HTTPS stand for and why is it important?
HTTPS stands for HyperText Transfer Protocol Secure. It encrypts data between the browser and server, keeping information safe from eavesdroppers.
Click to reveal answer
beginner
What is an SSL certificate in the context of Express apps?
An SSL certificate is a digital file that proves a website's identity and enables encrypted connections using HTTPS in Express apps.
Click to reveal answer
intermediate
How do you enable HTTPS in an Express server?
You create an HTTPS server using Node's https module with your SSL certificate and key, then pass your Express app to it.
Click to reveal answer
intermediate
Why should you never use self-signed SSL certificates in production?
Self-signed certificates are not trusted by browsers, causing security warnings. Production sites need certificates from trusted authorities.
Click to reveal answer
intermediate
What role does the private key play in SSL certificates?
The private key is kept secret on the server and is used to decrypt data encrypted by clients and to prove the server's identity.
Click to reveal answer
Which Node.js module is used to create an HTTPS server in Express?
Atls
Bhttp
Chttps
Dexpress-ssl
What files do you need to enable HTTPS in Express?
ACertificate and private key files
BOnly the certificate file
COnly the private key file
DNo files needed
What happens if you use a self-signed certificate in a browser?
AConnection is fully trusted
BBrowser shows a security warning
CBrowser blocks the site completely
DBrowser automatically trusts it
Why is HTTPS preferred over HTTP?
AIt encrypts data for security
BIt loads pages faster
CIt uses less bandwidth
DIt allows more users
In Express, which method is used to create a server that supports HTTPS?
Ahttp.createServer()
Bexpress.createHttps()
Cexpress.https()
Dhttps.createServer()
Explain how to set up HTTPS in an Express application using SSL certificates.
Think about the files needed and the Node module to create the server.
You got /5 concepts.
    Describe why SSL certificates are important for web security and user trust.
    Consider what happens when data is sent over the internet.
    You got /5 concepts.