Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect on secure port #5

Open
dvand opened this issue Jul 12, 2015 · 4 comments
Open

Can't connect on secure port #5

dvand opened this issue Jul 12, 2015 · 4 comments

Comments

@dvand
Copy link

dvand commented Jul 12, 2015

insecure connection works fine. Maybe an issue with old ssl versions or certificates on the XEP?

~/node $ node elktest.js

events.js:72
throw er; // Unhandled 'error' event
^
Error: socket hang up
at SecurePair.error (tls.js:1010:23)
at CleartextStream.read as _read
at CleartextStream.Readable.read (_stream_readable.js:340:10)
at EncryptedStream.write as _write
at doWrite (_stream_writable.js:225:10)
at writeOrBuffer (_stream_writable.js:215:5)
at EncryptedStream.Writable.write (_stream_writable.js:182:11)
at write (_stream_readable.js:601:24)
at flow (_stream_readable.js:610:7)
at Socket.pipeOnReadable (_stream_readable.js:642:5)
pi@raspberrypi ~/node $

@kevinohara80
Copy link
Owner

Interesting. TBH, it's been a while since I played with this. I'll see if I can find some time tonight to look at this and try it out.

@dvand
Copy link
Author

dvand commented Jul 14, 2015

I actually got it to work.

First thing is I was connecting to the secure port but not using a
password.

Second thing is I set some of the tls connection options.
On Jul 14, 2015 5:35 AM, "kevinohara80" [email protected] wrote:

Interesting. TBH, it's been a while since I played with this. I'll see if
I can find some time tonight to look at this and try it out.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@awmcclain
Copy link

What were your TLS connection options? I'm running into the same problem: socket hangup even though I'm providing U/P.

@dvand
Copy link
Author

dvand commented Nov 19, 2015

These are the options i set. I didn't do a lot of experimentation to see
which ones were necessary or not

var options =
{secureProtocol:'TLSv1_method',rejectUnauthorized:'false',cipher:'AES256-SHA'};

On Wed, Nov 18, 2015 at 10:25 AM, awmcclain [email protected]
wrote:

What were your TLS connection options? I'm running into the same problem:
socket hangup even though I'm providing U/P.


Reply to this email directly or view it on GitHub
#5 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants