Node.js TLS Module
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 |