Module TLS Node.js
Définition et utilisation
Le module TLS permet d'implémenter TLS (Transport Layer Security) et SSL (Secure Socket Layer).
Syntaxe
La syntaxe pour inclure le module TLS dans votre application :
var tls = require('tls');
Propriétés et méthodes 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 |