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

SSL EPROTO Error #2244

Closed
diegossilveira opened this issue Jul 25, 2015 · 4 comments
Closed

SSL EPROTO Error #2244

diegossilveira opened this issue Jul 25, 2015 · 4 comments
Labels
tls Issues and PRs related to the tls subsystem. wontfix Issues that will not be fixed.

Comments

@diegossilveira
Copy link

When using iojs, version 2.4.0, I'm facing some TLS problems. The following sample code can be used to simulate the problem:

var https = require('https');

var options = {
  hostname: 'm4walletb2b.m4u.com.br',
  port: 443,
  path: '/',
  method: 'GET'
};

var req = https.request(options);
req.end();

req.on('error', function(e) {
  console.error(e);
});

The output result is:

{ [Error: write EPROTO]
  code: 'EPROTO',
  errno: 'EPROTO',
  syscall: 'write',
  address: undefined }

This same code runs successfully on node 0.10.38 and node 0.12.7.

@bnoordhuis
Copy link
Member

It's because m4walletb2b.m4u.com.br uses RC4-SHA. io.js no longer supports RC4 out of the box because it's considered insecure.

Please consult the tls documentation on steps you can take. I'm not going to spell them out here because I fear people coming from google will just blindly copy/paste them without thinking through the consequences. Good luck!

@bnoordhuis bnoordhuis added wontfix Issues that will not be fixed. tls Issues and PRs related to the tls subsystem. labels Jul 25, 2015
@diegossilveira
Copy link
Author

@bnoordhuis, thank you for the reply!

Is there a way I can found the default SSL/TLS ciphers used on HTTPS module for a given version of io.js (and node.js)?

@targos
Copy link
Member

targos commented Jul 25, 2015

@diegossilveira you can find the list in the doc for tls.createServer

@tomalex0
Copy link

How can i figure out if cert file is having RC4-SHA ? which property correspond to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tls Issues and PRs related to the tls subsystem. wontfix Issues that will not be fixed.
Projects
None yet
Development

No branches or pull requests

4 participants