Modul TLS Node.js
Definice a použití
Modul TLS poskytuje způsob implementace TLS (Transport Layer Security) a SSL (Secure Socket Layer).
Syntax
Syntaxe pro zahrnutí modulu TLS do vaší aplikace:
var tls = require('tls');
Vlastnosti a metody 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 |