Skip to content

Can't get TLSSocket.renegotiate() to work #2259

@alexlamsl

Description

@alexlamsl

Looks like somebody has asked this a while ago on StackOverflow to no avail.

Basically, on the server-side you call:

var result = socket.renegotiate({
  requestCert:true,
  rejectUnauthorized:true
}, function(err) {
  console.error(err);
});

And you will get result === true, but otherwise nothing happens - the callback is never executed.

On the client side, I get the following error:

{ [Error: socket hang up] code: 'ECONNRESET' }

Judging by the test case within io.js, you have a special case for this, but of course I would have no access to constants so I'm not sure what to do here...

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