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

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.