Commit 44f3cbf
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 de7a109 commit 44f3cbf
File tree
14 files changed
+2621
-89
lines changed- llrt_modules/src
- modules
- llrt_http/src
- llrt_tls
- src
- tests/unit
- types
14 files changed
+2621
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
248 | 271 | | |
249 | 272 | | |
250 | 273 | | |
| |||
0 commit comments