Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

Node.js TLS Module

❮ Built-in Modules


Definition and Usage

The TLS module provides a way of implementing TLS (Transport Layer Security) and SSL (Secure Socket Layer).


Syntax

The syntax for including the TLS module in your application:

var tls = require('tls');

TLS Properties and Methods

Method Description
connect() Returns a Socket object
createSecureContext() Creates an object containing security details
createServer() Creates a Server object
getCiphers() Returns an array containing the supported SSL ciphers

❮ Built-in Modules