Complete the code to import the HTTPS module in Node.js.
const https = require('[1]');
The HTTPS module is imported using require('https') to create secure servers.
Complete the code to read the SSL private key file using the fs module.
const privateKey = fs.readFileSync('[1]', 'utf8');
The private key file usually has a .key extension, such as server.key.
Fix the error in creating the HTTPS server with Express and SSL options.
const server = https.createServer({ [1] }, app);The HTTPS server options must be an object with key and cert properties assigned to the private key and certificate.
Fill both blanks to create SSL options object with private key and certificate.
const sslOptions = { [1]: privateKey, [2]: certificate };The SSL options object requires the properties key and cert to hold the private key and certificate respectively.
Fill both blanks to start the HTTPS server listening on port 443 with a callback.
server.listen([1], () => { console.log('Server running on port [2]'); });
Port 443 is the standard port for HTTPS. The port number should be a number, not a string.