node-xmlrpc icon indicating copy to clipboard operation
node-xmlrpc copied to clipboard

EPROTO error for createSecureClient

Open mahios2015 opened this issue 9 years ago • 3 comments

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.

mahios2015 avatar Oct 22 '15 13:10 mahios2015

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 avatar Nov 14 '18 06:11 hphirke

@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.

hphirke avatar Nov 14 '18 07:11 hphirke

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"

goodhyun avatar Sep 23 '19 02:09 goodhyun