Skip to content

Fix rejectUnauthorized: undefined in tls.connect, requestCert in tls.createServer #5917

@indutny

Description

@indutny
  • Version: master
  • Platform: all
  • Subsystem: tls

There are two usability issues in tls module:

  • tls.connect treats rejectUnauthorized !== true as a false value, even more rejectUnauthorized: undefined is treated as a false. Clearly it should be completely reversed, only when rejectUnauthorized is false - it should be disabled. (This is semver-major)
  • tls.createServer should change default value of requestCert to true. (Note: we should verify that it still works 😉 ) (semver-major as well)

Metadata

Metadata

Assignees

No one assigned

    Labels

    tlsIssues and PRs related to the tls subsystem.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions