Skip to content

Commit 824bdaf

Browse files
committed
feat(tls): implement TLS module for secure connections
Add client-side TLS support with the following features: - tls.connect() for creating secure outbound connections - tls.createSecureContext() for reusable TLS configurations - TLSSocket class with full event support (secureConnect, data, end, close, error, keylog) - Custom CA certificates for private PKI - Client certificate authentication (mTLS) for zero-trust environments - ALPN protocol negotiation for HTTP/2 support - TLS version control (minVersion/maxVersion) - SNI (Server Name Indication) support - keylog event for TLS debugging with Wireshark - getCiphers(), checkServerIdentity(), rootCertificates This implementation focuses on Lambda-relevant client-side functionality. Server-side APIs (createServer, Server class) are intentionally omitted as they are not applicable to serverless environments. Fixes #1 Fixes #1102
1 parent 605db49 commit 824bdaf

File tree

14 files changed

+2605
-58
lines changed

14 files changed

+2605
-58
lines changed

API.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,29 @@ Everything else inherited from [Uint8Array](https://developer.mozilla.org/en-US/
263263

264264
[createServer](https://nodejs.org/api/net.html#netcreateserveroptions-connectionlistener)
265265

266+
## tls
267+
268+
> [!WARNING]
269+
> These APIs uses native streams that is not 100% compatible with the Node.js Streams API.
270+
271+
[connect](https://nodejs.org/api/tls.html#tlsconnectoptions-callback)
272+
273+
[createSecureContext](https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions)
274+
275+
[getCiphers](https://nodejs.org/api/tls.html#tlsgetciphers)
276+
277+
[rootCertificates](https://nodejs.org/api/tls.html#tlsrootcertificates)
278+
279+
[checkServerIdentity](https://nodejs.org/api/tls.html#tlscheckserveridentityhostname-cert)
280+
281+
[DEFAULT_MIN_VERSION](https://nodejs.org/api/tls.html#tlsdefault_min_version)
282+
283+
[DEFAULT_MAX_VERSION](https://nodejs.org/api/tls.html#tlsdefault_max_version)
284+
285+
[TLSSocket](https://nodejs.org/api/tls.html#class-tlstlssocket)
286+
287+
[SecureContext](https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions)
288+
266289
## os
267290

268291
[arch](https://nodejs.org/api/os.html#osarch)

0 commit comments

Comments
 (0)