node:https

The built-in Node.js module for HTTP over TLS, combining node:http with node:tls.

In more detail

https.createServer({ key, cert }, handler) behaves like an HTTP server whose connections are encrypted. Clients use https.request() or fetch() with https:// URLs, and certificates are verified by default.

Related terms

Taught in

References