镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

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)

Activity

  1. added
    tlsIssues and PRs related to the tls subsystem.
    good first issueIssues that are suitable for first-time contributors.
    on Mar 26, 2016
  2. bnoordhuis commented on Mar 27, 2016

    @bnoordhuis
    Member

    tls.createServer should change default value of requestCert to true.

    Did you mean rejectUnauthorized? requestCert is for making the server request client certificates.

  3. ghaiklor commented on Mar 27, 2016

    @ghaiklor
    Contributor

    @indutny can I remove _tls_legacy.js as well? Since is semver-major change.

  4. jhamhader commented on Mar 27, 2016

    @jhamhader
    Contributor
  5. ghaiklor commented on Mar 27, 2016

    @ghaiklor
    Contributor

    @jhamhader see #5923 . Your PR has conflicts, better to split removing _tls_legacy and usability fixes to different PR.

    UPD: I see, conflicts resolved.

  6. addaleax commented on Apr 30, 2017

    @addaleax
    Member

    I think this is fixed now that #5923 has landed, feel free to re-open if I’m mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tlsIssues and PRs related to the tls subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions