Modulo TLS Node.js
Definizione e utilizzo
Il modulo TLS fornisce un modo per implementare TLS (Transport Layer Security) e SSL (Secure Socket Layer).
Sintassi
La sintassi per includere il modulo TLS nell'applicazione:
var tls = require('tls');
Proprietà e metodi 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 |