node:tls

The built-in Node.js module for TLS connections and settings, used underneath node:https and HTTP/2 over TLS.

In more detail

tls.createSecureContext() bundles a certificate, key and settings such as minVersion: "TLSv1.3" so servers can reuse them. tls.connect() and tls.createServer() give encrypted sockets that behave like ordinary TCP sockets.

Related terms

Taught in

References