Módulo TLS de Node.js
Definición y uso
El módulo TLS proporciona una forma de implementar TLS (Transport Layer Security) y SSL (Secure Socket Layer).
Sintaxis
La sintaxis para incluir el módulo TLS en su aplicación:
var tls = require('tls');
Propiedades y métodos de TLS
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 |