传输层安全 (TLS/SSL)


【TLS (SSL)】

源代码: 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');