Tutorials References Exercises Bootcamp Menu
Sign Up Create Website Get Certified Upgrade

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).


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