I'm running into an issue trying to make a soap request using node-soap. The error is only on ubuntu, I've tested on windows too - the code (obviously excluding curl) is working there.
The error I get is:
Unhandled rejection Error: write EPROTO 140332284700480:error:14082174:SSL routines:ssl3_check_cert_and_algorithm:dh key too small:../deps/openssl/openssl/ssl/s3_clnt.c:3615:
I've also tried using request/request
which also fails. When using plain curl I get a response from the server I'm trying to connect to.
Here's the code I'm using:
exec('curl ' + url, function(err, res) {
log(err); // null
log(res); // expected response
});
request.postAsync({
url,
rejectUnauthorized: false,
requestCert: true,
}).then(val => {
log(val);
}).catch(err => {
log(err); // above error message
})
soap.createClientAsync(url).then(val => {
log(val);
}).catch(err => {
log(err); // above error message
})
I've tested on the following versions:
node 4.4.0 and 5.8.0, ubuntu server version 14.04 and ubuntu 15.04 desktop
The openssl version is OpenSSL 1.0.2f 28 Jan 2016
Can someone help me? Is it possible to make this work somehow?