Commit 824bdaf
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 #11021 parent 605db49 commit 824bdaf
File tree
14 files changed
+2605
-58
lines changed- llrt_modules/src
- modules
- llrt_http/src
- llrt_tls
- src
- tests/unit
- types
14 files changed
+2605
-58
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
266 | 289 | | |
267 | 290 | | |
268 | 291 | | |
| |||
0 commit comments