tls: introduce `secureContext` for `tls.connect`
requested to merge github/fork/indutny/backport/c5b4f6bc996e25f9e24db8ed31df86010d2dfcec into v4.x-staging
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
tls
Description of change
Add secureContext
option to tls.connect
. It is useful for caching
client certificates, key, and CA certificates.
PR-URL: https://github.com/nodejs/node/pull/4246 Reviewed-By: James M Snell jasnell@gmail.com
Backport of: https://github.com/nodejs/node/pull/4246#issuecomment-251229400