TLS (SSL)


稳定性: 2 - 稳定的

¥Stability: 2 - Stable

源代码: lib/tls.js

node:tls 模块提供了构建在 OpenSSL 之上的传输层安全 (TLS) 和安全套接字层 (SSL) 协议的实现。该模块可以使用以下方式访问:

¥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. The module can be accessed using:

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