Node.js v18.12.1 documentation


Table of contents

TLS (SSL)#

Stability: 2 - Stable

Source Code: lib/tls.js

The node:tls module provides an implementation of the Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL. node:tls模块提供了在OpenSSL之上构建的传输层安全性(tls)和安全套接字层(SSL)协议的实现。The module can be accessed using:可以使用以下方式访问该模块:

const tls = require('node:tls');