Fix rejectUnauthorized: undefined
in tls.connect
, requestCert
in tls.createServer
#5917
Closed
2 tasks
Labels
tls
Issues and PRs related to the tls subsystem.
There are two usability issues in tls module:
tls.connect
treatsrejectUnauthorized !== true
as a false value, even morerejectUnauthorized: undefined
is treated as afalse
. Clearly it should be completely reversed, only whenrejectUnauthorized
isfalse
- it should be disabled. (This is semver-major)tls.createServer
should change default value ofrequestCert
totrue
. (Note: we should verify that it still works 😉 ) (semver-major as well)The text was updated successfully, but these errors were encountered: