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

EPROTO error for createSecureClient #118

Open
mahios2015 opened this issue Oct 22, 2015 · 3 comments
Open

EPROTO error for createSecureClient #118

mahios2015 opened this issue Oct 22, 2015 · 3 comments

Comments

@mahios2015
Copy link

I am connecting the xmlrpc service using xmlrpc module and getting EPROTO error in response. i feel the error is related to socket . i am confused and not getting any solution.my xmlrpc service support only TLSv1.0 protocol and not others.But getting protocol error.please give the suggestion.

Actually our xmlrpc server port is 8085 (https). getting EPROTO error. Expecting solution.

@hphirke
Copy link

hphirke commented Nov 14, 2018

I am getting same error.
The server to which I connect also expects me to use TLS 1.2.
Did you have a solution for this?

@hphirke
Copy link

hphirke commented Nov 14, 2018

@mahios2015
You can try if below solution works:
const xmlclient = xmlrpc.createSecureClient({
url: "Your URL",
secureProtocol: "TLSv1_2_method"
});

The options passed to xmlrpc are passed as it is to the https transport module. So all options which work with node's https module could be used.

@goodhyun
Copy link

Node's minimum TLS version is now 1.2,
https://nodejs.org/api/tls.html#tls_tls_default_min_version
if you are using less than that, you should set
secureProtocol: "TLS_method"

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