Moduł TLS Node.js
Definicja i użycie
Moduł TLS zapewnia sposób implementacji TLS (Transport Layer Security) i SSL (Secure Socket Layer).
Składnia
Składnia dołączania modułu TLS do Twojej aplikacji:
var tls = require('tls');
Właściwości i 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 |