diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-08-09 15:55:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 15:55:00 +0200 |
commit | 3ab50b355141f744a0acec1a5cc3b3b95247d4b1 (patch) | |
tree | 5ab6c3a216f5ce5cc5ee8fbc12e99dfac09496d7 /extensions/net/02_tls.js | |
parent | f402904e6e227ee60a88d991cb9818d5340f5c1d (diff) |
feat: support client certificates for connectTls (#11598)
Co-authored-by: Daniel Lamando <dan@danopia.net>
Co-authored-by: Erik Price <github@erikprice.net>
Diffstat (limited to 'extensions/net/02_tls.js')
-rw-r--r-- | extensions/net/02_tls.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/net/02_tls.js b/extensions/net/02_tls.js index 4fafe9079..343ec2e4f 100644 --- a/extensions/net/02_tls.js +++ b/extensions/net/02_tls.js @@ -28,12 +28,16 @@ hostname = "127.0.0.1", transport = "tcp", certFile = undefined, + certChain = undefined, + privateKey = undefined, }) { const res = await opConnectTls({ port, hostname, transport, certFile, + certChain, + privateKey, }); return new Conn(res.rid, res.remoteAddr, res.localAddr); } |